From: Raxel Gutierrez Date: Fri, 13 Aug 2021 05:31:19 +0000 (+0000) Subject: patch-detail: clean up patch detail page template X-Git-Tag: v3.1.0~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70cd37b1e07461792fe370b8d1ee843d2ea51dff;p=thirdparty%2Fpatchwork.git patch-detail: clean up patch detail page template Clean up submission.html to have hyphen-delimited id and class selectors names for better readability and code health. Signed-off-by: Raxel Gutierrez [stephenfin: temporarily re-add removed toggle-div JS] Signed-off-by: Stephen Finucane --- diff --git a/htdocs/css/style.css b/htdocs/css/style.css index 243caa0d..46a91ee8 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -182,17 +182,17 @@ input#reorder-change { } /* patch view */ -table.patchmeta th { +table.patch-meta th { text-align: left; } -table.patchmeta tr th, table.patchmeta tr td { +table.patch-meta tr th, table.patch-meta tr td { text-align: left; padding: 1px 10px; vertical-align: top; } -.submissionlist ul { +.submission-list ul { list-style-type: none; padding: 0; margin: 0; diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html index 978559b8..9212fc99 100644 --- a/patchwork/templates/patchwork/submission.html +++ b/patchwork/templates/patchwork/submission.html @@ -32,7 +32,7 @@ function toggle_div(link_id, headers_id, label_show, label_hide)

{{ submission.name }}

- +
{% if submission.list_archive_url %} @@ -61,12 +61,11 @@ function toggle_div(link_id, headers_id, label_show, label_hide) {% endif %} - {% if submission.series %} @@ -76,10 +75,8 @@ function toggle_div(link_id, headers_id, label_show, label_hide) {{ submission.series.name }} | - expand -
Message ID
Headersshow - + + show +
Related - show -