From: Jeremy Kerr Date: Tue, 29 Mar 2016 01:29:12 +0000 (+0800) Subject: templates: Move comments to above patch X-Git-Tag: v2.0.0-rc1~385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5834b36eadfb539b3664303717b22c3a314f147;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 Acked-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/patch.html b/patchwork/templates/patchwork/patch.html index a05f00dc..8b6d1fe3 100644 --- a/patchwork/templates/patchwork/patch.html +++ b/patchwork/templates/patchwork/patch.html @@ -202,6 +202,22 @@ function toggle_headers(link_id, headers_id) +{% for item in patch.comments.all %} +{% if forloop.first %} +

Comments

+{% endif %} + +
+
+ {{ item.submitter|personify:project }} + {{ item.date }} +
+
+{{ item|commentsyntax }}
+
+
+{% endfor %} + {% if patch.diff %}

Patch @@ -220,20 +236,4 @@ function toggle_headers(link_id, headers_id) {% endif %} -{% for item in patch.comments.all %} -{% if forloop.first %} -

Comments

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