]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
templates: Move comments to above patch v1.1.1
authorJeremy Kerr <jk@ozlabs.org>
Tue, 29 Mar 2016 01:29:12 +0000 (09:29 +0800)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 29 Mar 2016 09:04:27 +0000 (10:04 +0100)
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 <jk@ozlabs.org>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/templates/patchwork/patch.html

index 4d4635439c606e5748e72ec75b76e3c5da3b51b9..3e27afb14320231909c56dd85d2c06119a29aeac 100644 (file)
@@ -193,6 +193,22 @@ function toggle_headers(link_id, headers_id)
 
 {% for item in patch.commit_message %}
 <h2>Commit Message</h2>
+<div class="comment">
+<div class="meta">
+ <span>{{ patch.submitter|personify:project }}</span>
+ <span class="pull-right">{{ patch.date }}</span>
+</div>
+<pre class="content">
+{{ item|commentsyntax }}
+</pre>
+</div>
+{% endfor %}
+
+{% for item in patch.answers %}
+{% if forloop.first %}
+<h2>Comments</h2>
+{% endif %}
+
 <div class="comment">
 <div class="meta">
  <span>{{ item.submitter|personify:project }}</span>
@@ -224,20 +240,4 @@ function toggle_headers(link_id, headers_id)
 </div>
 {% endif %}
 
-{% for item in patch.answers %}
-{% if forloop.first %}
-<h2>Comments</h2>
-{% endif %}
-
-<div class="comment">
-<div class="meta">
- <span>{{ item.submitter|personify:project }}</span>
- <span class="pull-right">{{ item.date }}</span>
-</div>
-<pre class="content">
-{{ item|commentsyntax }}
-</pre>
-</div>
-{% endfor %}
-
 {% endblock %}