[PATCH 2/5] Add a comment count column to patch list view
Nate Case
ncase at xes-inc.com
Fri Mar 20 05:59:53 EST 2009
From: Peter Tyser <ptyser at xes-inc.com>
Showing the number of comments made for a patch may be useful in
determining which patches still need review. Unfortunately, we cannot
easily sort by comment count since it's not a regular field of the
Patch class.
Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
Signed-off-by: Nate Case <ncase at xes-inc.com>
---
Rebased against latest HEAD, and doesn't rely on our custom CSS
modifications.
templates/patchwork/patch-list.html | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html
index d4dd325..16e4a8f 100644
--- a/templates/patchwork/patch-list.html
+++ b/templates/patchwork/patch-list.html
@@ -113,6 +113,10 @@
</th>
<th>
+ <span class="colinactive">Comments</span>
+ </th>
+
+ <th>
{% ifequal order.name "state" %}
<a class="colactive"
href="{% listurl order=order.reversed_name %}"><img
@@ -146,6 +150,7 @@
<td>{{ patch.date|date:"Y-m-d" }}</td>
<td>{{ patch.submitter|personify }}</td>
<td>{{ patch.delegate.username }}</td>
+ <td>{{ patch.comments.count }}</td>
<td>{{ patch.state }}</td>
</tr>
{% endfor %}
--
1.6.2
More information about the Patchwork
mailing list