Skip to content

Commit e073ca7

Browse files
jk-ozlabsstephenfin
authored andcommitted
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 <[email protected]> Signed-off-by: Stephen Finucane <[email protected]>
1 parent 070c1f3 commit e073ca7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

patchwork/templates/patchwork/patch.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,22 @@ <h2>Checks</h2>
193193

194194
{% for item in patch.commit_message %}
195195
<h2>Commit Message</h2>
196+
<div class="comment">
197+
<div class="meta">
198+
<span>{{ patch.submitter|personify:project }}</span>
199+
<span class="pull-right">{{ patch.date }}</span>
200+
</div>
201+
<pre class="content">
202+
{{ item|commentsyntax }}
203+
</pre>
204+
</div>
205+
{% endfor %}
206+
207+
{% for item in patch.answers %}
208+
{% if forloop.first %}
209+
<h2>Comments</h2>
210+
{% endif %}
211+
196212
<div class="comment">
197213
<div class="meta">
198214
<span>{{ item.submitter|personify:project }}</span>
@@ -224,20 +240,4 @@ <h2>
224240
</div>
225241
{% endif %}
226242

227-
{% for item in patch.answers %}
228-
{% if forloop.first %}
229-
<h2>Comments</h2>
230-
{% endif %}
231-
232-
<div class="comment">
233-
<div class="meta">
234-
<span>{{ item.submitter|personify:project }}</span>
235-
<span class="pull-right">{{ item.date }}</span>
236-
</div>
237-
<pre class="content">
238-
{{ item|commentsyntax }}
239-
</pre>
240-
</div>
241-
{% endfor %}
242-
243243
{% endblock %}

0 commit comments

Comments
 (0)