[PATCH 2/2] Add a comment count column to patch list view

Nate Case ncase at xes-inc.com
Fri Nov 7 10:49:36 EST 2008


From: Peter Tyser <ptyser at xes-inc.com>

Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
---
 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 4c6b8a5..8f636cd 100644
--- a/templates/patchwork/patch-list.html
+++ b/templates/patchwork/patch-list.html
@@ -44,6 +44,10 @@
   </th>
 
   <th>
+   Comments
+  </th>
+
+  <th>
    {% ifequal order.name "date" %}
     <a class="colactive"
      href="{% listurl order=order.reversed_name %}"><img
@@ -107,6 +111,7 @@
     {% endif %}
    <td><a href="{% url patchwork.views.patch.patch patch_id=patch.id %}"
      >{{ patch.name }}</a></td>
+   <td>{{ patch.comments.count }} </td>
    <td>{{ patch.date|date:"Y-m-d" }}</td>
    <td>{{ patch.submitter|personify }}</td>
    <td>{{ patch.delegate.username }}</td>
-- 
1.5.5.1




More information about the Patchwork mailing list