diff mbox

[41/46] patch: Pull the patch between the commit message and comments

Message ID 1415473744-31531-42-git-send-email-damien.lespiau@intel.com
State Superseded
Headers show

Commit Message

Damien Lespiau Nov. 8, 2014, 7:08 p.m. UTC
This follows a logical flow, commit message, patch then comments.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 templates/patchwork/patch.html | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff mbox

Patch

diff --git a/templates/patchwork/patch.html b/templates/patchwork/patch.html
index 618f08e..146464a 100644
--- a/templates/patchwork/patch.html
+++ b/templates/patchwork/patch.html
@@ -189,6 +189,16 @@  function toggle_headers(link_id, headers_id)
 </pre>
 </div>
 {% endif %}
+
+{% if patch.content %}
+<h2>Patch</h2>
+<div class="patch">
+<pre class="content">
+{{ patch|patchsyntax }}
+</pre>
+</div>
+{% endif %}
+
 {% elif item %}
 <h2>Comments</h2>
 
@@ -203,14 +213,4 @@  function toggle_headers(link_id, headers_id)
 {% endif %}
 {% endfor %}
 
-{% if patch.content %}
-<h2>Patch</h2>
-<div class="patch">
-<pre class="content">
-{{ patch|patchsyntax }}
-</pre>
-</div>
-{% endif %}
-
-
 {% endblock %}