Commit f6113ee4 authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

Add delegate column


Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent e5b3f8f1
...@@ -43,7 +43,8 @@ class Order(object): ...@@ -43,7 +43,8 @@ class Order(object):
'date': 'date', 'date': 'date',
'name': 'name', 'name': 'name',
'state': 'state__ordering', 'state': 'state__ordering',
'submitter': 'submitter__name' 'submitter': 'submitter__name',
'delegate': 'delegate__username',
} }
default_order = 'date' default_order = 'date'
......
...@@ -67,6 +67,19 @@ ...@@ -67,6 +67,19 @@
{% endifequal %} {% endifequal %}
</th> </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> <th>
{% ifequal order.name "state" %} {% ifequal order.name "state" %}
<a class="colactive" <a class="colactive"
...@@ -94,6 +107,7 @@ ...@@ -94,6 +107,7 @@
>{{ patch.name }}</a></td> >{{ patch.name }}</a></td>
<td>{{ patch.date|date:"Y-m-d" }}</td> <td>{{ patch.date|date:"Y-m-d" }}</td>
<td>{{ patch.submitter|personify }}</td> <td>{{ patch.submitter|personify }}</td>
<td>{{ patch.delegate.username }}</td>
<td>{{ patch.state }}</td> <td>{{ patch.state }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment