diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-09-01 13:56:09 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-09-01 13:56:09 +1000 |
commit | f6113ee4e29241c03560ba0854a885c67ea1903a (patch) | |
tree | f1c27d740bcc1b60f569f52641e6d52fd82a6071 | |
parent | e5b3f8f1778a7fb744feb755c9e374ea95542f01 (diff) | |
download | patchwork-f6113ee4e29241c03560ba0854a885c67ea1903a.tar.bz2 patchwork-f6113ee4e29241c03560ba0854a885c67ea1903a.tar.xz |
Add delegate column
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | apps/patchwork/utils.py | 3 | ||||
-rw-r--r-- | templates/patchwork/patch-list.html | 14 |
2 files changed, 16 insertions, 1 deletions
diff --git a/apps/patchwork/utils.py b/apps/patchwork/utils.py index ba8349a..05e66e2 100644 --- a/apps/patchwork/utils.py +++ b/apps/patchwork/utils.py @@ -43,7 +43,8 @@ class Order(object): 'date': 'date', 'name': 'name', 'state': 'state__ordering', - 'submitter': 'submitter__name' + 'submitter': 'submitter__name', + 'delegate': 'delegate__username', } default_order = 'date' diff --git a/templates/patchwork/patch-list.html b/templates/patchwork/patch-list.html index 57491e2..14a0f0c 100644 --- a/templates/patchwork/patch-list.html +++ b/templates/patchwork/patch-list.html @@ -68,6 +68,19 @@ </th> <th> + {% ifequal order.name "delegate" %} + <a class="colactive" + href="{% listurl order=order.reversed_name %}"><img + src="/images/16-arrow-{% if order.reversed %}up{% else %}down{%endif%}.png" + width="16" height="16" + ></a> <a class="colactive" + href="{% listurl order=order.reversed_name %}">Delegate</a> + {% else %} + <a class="colinactive" href="{% listurl order="delegate" %}">Delegate</a> + {% endifequal %} + </th> + + <th> {% ifequal order.name "state" %} <a class="colactive" href="{% listurl order=order.reversed_name %}"><img @@ -94,6 +107,7 @@ >{{ patch.name }}</a></td> <td>{{ patch.date|date:"Y-m-d" }}</td> <td>{{ patch.submitter|personify }}</td> + <td>{{ patch.delegate.username }}</td> <td>{{ patch.state }}</td> </tr> {% endfor %} |