]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
patch: Pull the patch between the commit message and comments
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 1 Nov 2014 23:29:20 +0000 (23:29 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 5 Nov 2015 03:56:23 +0000 (03:56 +0000)
This follows a logical flow, commit message, patch then comments.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
patchwork/templates/patchwork/patch.html

index 5a450162656d94980a14459dcc44fb89fe120f52..eb09990b05be054462869426706354ef84d5bafd 100644 (file)
@@ -187,6 +187,15 @@ function toggle_headers(link_id, headers_id)
 </div>
 {% endfor %}
 
+{% if patch.content %}
+<h2>Patch</h2>
+<div class="patch">
+<pre class="content">
+{{ patch|patchsyntax }}
+</pre>
+</div>
+{% endif %}
+
 {% for item in patch.answers %}
 {% if forloop.first %}
 <h2>Comments</h2>
@@ -200,14 +209,4 @@ function toggle_headers(link_id, headers_id)
 </div>
 {% endfor %}
 
-{% if patch.content %}
-<h2>Patch</h2>
-<div class="patch">
-<pre class="content">
-{{ patch|patchsyntax }}
-</pre>
-</div>
-{% endif %}
-
-
 {% endblock %}