From: Jeremy Kerr Date: Tue, 29 Mar 2016 01:29:12 +0000 (+0800) Subject: templates: Move comments to above patch X-Git-Tag: v1.1.1^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e073ca7900a2d9ba0db75cb49efb4e79bf37f475;p=thirdparty%2Fpatchwork.git 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 --- 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 %}