From e073ca7900a2d9ba0db75cb49efb4e79bf37f475 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 29 Mar 2016 09:29:12 +0800 Subject: [PATCH] templates: Move comments to above patch It's much more likely that existing comments will affect the user's actions, rather than the patch content itself, so put the comments first. Signed-off-by: Jeremy Kerr Signed-off-by: Stephen Finucane --- patchwork/templates/patchwork/patch.html | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/patchwork/templates/patchwork/patch.html b/patchwork/templates/patchwork/patch.html index 4d463543..3e27afb1 100644 --- a/patchwork/templates/patchwork/patch.html +++ b/patchwork/templates/patchwork/patch.html @@ -193,6 +193,22 @@ function toggle_headers(link_id, headers_id) {% for item in patch.commit_message %}

Commit Message

+
+
+ {{ patch.submitter|personify:project }} + {{ patch.date }} +
+
+{{ item|commentsyntax }}
+
+
+{% endfor %} + +{% for item in patch.answers %} +{% if forloop.first %} +

Comments

+{% endif %} +
{{ item.submitter|personify:project }} @@ -224,20 +240,4 @@ function toggle_headers(link_id, headers_id)
{% endif %} -{% for item in patch.answers %} -{% if forloop.first %} -

Comments

-{% endif %} - -
-
- {{ item.submitter|personify:project }} - {{ item.date }} -
-
-{{ item|commentsyntax }}
-
-
-{% endfor %} - {% endblock %} -- 2.47.3