5 {% include "patchwork/pagination.html" %}
8 <table class="patchlist">
10 <td class="patchlistfilters">
11 {% include "patchwork/filters.html" %}
13 {% if order.editable %}
14 <td class="patchlistreorder">
15 <form method="post" id="reorderform">
17 <input type="hidden" name="form" value="reorderform"/>
18 <input type="hidden" name="order_start" value="0"/>
19 <span id="reorderhelp"></span>
20 <input id="reorder-cancel" type="button" value="Cancel"
21 onClick="order_cancel_click(this)"/>
22 <input id="reorder-change" type="button" value="Change order"
23 onClick="order_button_click(this)"/>
30 {% if page.paginator.long_page and user.is_authenticated %}
32 <a title="jump to form" href="#patchforms"><span
33 style="font-size: 120%">▾</span></a>
39 <input type="hidden" name="form" value="patchlistform"/>
40 <input type="hidden" name="project" value="{{project.id}}"/>
41 <table class="patchlist" id="patchlist">
44 {% if user.is_authenticated %}
46 <input type="checkbox" onChange="select_all(this)"/>
51 {% ifequal order.name "name" %}
53 href="{% listurl order=order.reversed_name %}"><img
54 {% if order.reversed %}
55 src="{% static "images/16-arrow-up.png" %}"
57 src="{% static "images/16-arrow-down.png" %}"
59 width="16" height="16"
60 ></a> <a class="colactive"
61 href="{% listurl order=order.reversed_name %}">Patch</a>
63 {% if not order.editable %}
64 <a class="colinactive" href="{% listurl order="name" %}">Patch</a>
66 <span class="colinactive">Patch</span>
72 {% ifequal order.name "date" %}
74 href="{% listurl order=order.reversed_name %}"><img
75 {% if order.reversed %}
76 src="{% static "images/16-arrow-up.png" %}"
78 src="{% static "images/16-arrow-down.png" %}"
80 width="16" height="16"
81 ></a> <a class="colactive"
82 href="{% listurl order=order.reversed_name %}">Date</a>
84 {% if not order.editable %}
85 <a class="colinactive" href="{% listurl order="date" %}">Date</a>
87 <span class="colinactive">Date</span>
93 {% ifequal order.name "submitter" %}
95 href="{% listurl order=order.reversed_name %}"><img
96 {% if order.reversed %}
97 src="{% static "images/16-arrow-up.png" %}"
99 src="{% static "images/16-arrow-down.png" %}"
101 width="16" height="16"
102 ></a> <a class="colactive"
103 href="{% listurl order=order.reversed_name %}">Submitter</a>
105 {% if not order.editable %}
106 <a class="colinactive" href="{% listurl order="submitter" %}">Submitter</a>
108 <span class="colinactive">Submitter</span>
114 {% ifequal order.name "delegate" %}
116 href="{% listurl order=order.reversed_name %}"><img
117 {% if order.reversed %}
118 src="{% static "images/16-arrow-up.png" %}"
120 src="{% static "images/16-arrow-down.png" %}"
122 width="16" height="16"
123 ></a> <a class="colactive"
124 href="{% listurl order=order.reversed_name %}">Delegate</a>
126 {% if not order.editable %}
127 <a class="colinactive" href="{% listurl order="delegate" %}">Delegate</a>
129 <span class="colinactive">Delegate</span>
135 {% ifequal order.name "state" %}
137 href="{% listurl order=order.reversed_name %}"><img
138 {% if order.reversed %}
139 src="{% static "images/16-arrow-up.png" %}"
141 src="{% static "images/16-arrow-down.png" %}"
143 width="16" height="16"
144 ></a> <a class="colactive"
145 href="{% listurl order=order.reversed_name %}">State</a>
147 {% if not order.editable %}
148 <a class="colinactive" href="{% listurl order="state" %}">State</a>
150 <span class="colinactive">State</span>
158 {% if page.paginator.count %}
160 {% for patch in page.object_list %}
161 <tr id="patch_row:{{patch.id}}" class="{% cycle 'odd' 'even' %}">
162 {% if user.is_authenticated %}
164 <input type="checkbox" name="patch_id:{{patch.id}}"/>
167 <td><a href="{% url 'patchwork.views.patch.patch' patch_id=patch.id %}"
168 >{{ patch.name|default:"[no subject]" }}</a></td>
169 <td>{{ patch.date|date:"Y-m-d" }}</td>
170 <td>{{ patch.submitter|personify:project }}</td>
171 <td>{{ patch.delegate.username }}</td>
172 <td>{{ patch.state }}</td>
178 {% include "patchwork/pagination.html" %}
180 <div class="patchforms" id="patchforms" name="patchforms">
183 <div class="patchform patchform-properties">
187 <th>Change state:</th>
189 {{ patchform.state }}
190 {{ patchform.state.errors }}
194 <th>Delegate to:</td>
196 {{ patchform.delegate }}
197 {{ patchform.delegate.errors }}
203 {{ patchform.archived }}
204 {{ patchform.archived.errors }}
210 <input type="submit" name="action" value="{{patchform.action}}"/>
218 {% if user.is_authenticated %}
219 <div class="patchform patchform-bundle">
223 <td>Create bundle:</td>
225 <input type="text" name="bundle_name"/>
226 <input name="action" value="Create" type="submit"/>
231 <td>Add to bundle:</td>
233 <select name="bundle_id"/>
234 {% for bundle in bundles %}
235 <option value="{{bundle.id}}">{{bundle.name}}</option>
238 <input name="action" value="Add" type="submit"/>
244 <td>Remove from bundle:</td>
246 <input type="hidden" name="removed_bundle_id" value="{{bundle.id}}"/>
247 <input name="action" value="Remove" type="submit"/>
256 <div style="clear: both;">
262 <td colspan="5">No patches to display</td>