]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/patch-list.html
Add credit for djagno-xmlrpc app
[patchwork] / templates / patchwork / patch-list.html
index 0a15e9c7b39eec98aa11095afa55df8b3ab0661e..597806b53d3692abe9cc982d45f48ea27cc5c860 100644 (file)
 <input type="hidden" name="project" value="{{project.id}}"/>
 <table class="patchlist">
  <tr>
-  {% if patchform or bundle %}
+  {% if user.is_authenticated %}
   <th/>
   {% endif %}
 
   <th>
    {% ifequal order.name "name" %}
     <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 %}">Patch</a>
    {% else %}
     <a class="colinactive" href="{% listurl order="name" %}">Patch</a>
   <th>
    {% ifequal order.name "date" %}
     <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 %}">Date</a>
    {% else %}
     <a class="colinactive" href="{% listurl order="date" %}">Date</a>
   <th>
    {% ifequal order.name "submitter" %}
     <a class="colactive"
-     href="{% listurl order=order.reversed_name %}">Submiter</a>
+     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 %}">Submitter</a>
    {% else %}
     <a class="colinactive" href="{% listurl order="submitter" %}">Submitter</a>
    {% endifequal %}
   </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
+     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 %}">State</a>
    {% else %}
     <a class="colinactive" href="{% listurl order="state" %}">State</a>
@@ -68,8 +97,8 @@
 
 {% if page %}
  {% for patch in page.object_list %}
-  <tr>
-    {% if patchform or bundle %}
+  <tr class="{% cycle 'odd' 'even' %}">
+    {% if user.is_authenticated %}
     <td>
     <input type="checkbox" name="patch_id:{{patch.id}}"/>
     </td>
      >{{ 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 %}