summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/patchlist.html
blob: d6709cd11c7e3b2f99a6eca1bf96c304ea9cca5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

{% load person %}

{% if patches %}
<form method="post">
{% csrf_token %}
<table class="patchlist">
 <tr>
  {% if patchform %}
  <th/>
  {% endif %}
  <th><a class="colinactive" href="list?person=846&order=patch">Patch</a></th>
  <th><a class="colinactive" href="list?person=846&order=date">Date</a></th>
  <th><a class="colinactive" href="list?person=846&order=submitter">Submitter</a></th>
  <th><a class="colinactive" href="list?person=846&order=state">State</a></th>
 </tr>
 {% for patch in patches %}
  <tr>
    {% if patchform %}
    <td>
    <input type="hidden" name="patch_ids" value="{{ patch.id }}"/>
    <input type="checkbox" name="patch-{{patch.id}}">
    </td>
    {% endif %}
   <td><a href="{% url patchwork.views.patch.patch patch_id=patch.id %}">{{ patch.name }}</a></td>
   <td>{{ patch.date|date:"Y-m-d" }}</td>
   <td>{{ patch.submitter|personify }}</td>
   <td>{{ patch.state }}</td>
  </tr>
 {% endfor %}
</table>

{% include "patchwork/patch-form.html" %}

{% else %}
 <p>No patches to display</p>
{% endif %}