diff options
-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 %} |