6 {% load cycle from future %}
8 {% include "patchwork/pagination.html" %}
11 <table class="patchlist">
13 <td class="patchlistfilters">
14 {% include "patchwork/filters.html" %}
16 {% if order.editable %}
17 <td class="patchlistreorder">
18 <form method="post" id="reorderform">
20 <input type="hidden" name="form" value="reorderform"/>
21 <input type="hidden" name="order_start" value="0"/>
22 <span id="reorderhelp"></span>
23 <input id="reorder-cancel" type="button" value="Cancel"
24 onClick="order_cancel_click(this)"/>
25 <input id="reorder-change" type="button" value="Change order"
26 onClick="order_button_click(this)"/>
33 {% if page.paginator.long_page and user.is_authenticated %}
35 <a title="jump to form" href="#patchforms"><span
36 style="font-size: 120%">▾</span></a>
42 <input type="hidden" name="form" value="patchlistform"/>
43 <input type="hidden" name="project" value="{{project.id}}"/>
44 <table class="patchlist" id="patchlist">
47 {% if user.is_authenticated %}
49 <input type="checkbox" onChange="select_all(this)"/>
54 {% ifequal order.name "name" %}
56 href="{% listurl order=order.reversed_name %}"><img
57 {% if order.reversed %}
58 src="{% static "images/16-arrow-up.png" %}"
60 src="{% static "images/16-arrow-down.png" %}"
62 width="16" height="16"
63 ></a> <a class="colactive"
64 href="{% listurl order=order.reversed_name %}">Patch</a>
66 {% if not order.editable %}
67 <a class="colinactive" href="{% listurl order="name" %}">Patch</a>
69 <span class="colinactive">Patch</span>
76 title="{% for tag in project.tags %}{{tag.name}}{% if not forloop.last %} / {% endif %}{% endfor %}"
77 >{% for tag in project.tags %}{{tag.abbrev}}{% if not forloop.last %}/{% endif %}{% endfor %}</span>
81 {% ifequal order.name "date" %}
83 href="{% listurl order=order.reversed_name %}"><img
84 {% if order.reversed %}
85 src="{% static "images/16-arrow-up.png" %}"
87 src="{% static "images/16-arrow-down.png" %}"
89 width="16" height="16"
90 ></a> <a class="colactive"
91 href="{% listurl order=order.reversed_name %}">Date</a>
93 {% if not order.editable %}
94 <a class="colinactive" href="{% listurl order="date" %}">Date</a>
96 <span class="colinactive">Date</span>
102 {% ifequal order.name "submitter" %}
104 href="{% listurl order=order.reversed_name %}"><img
105 {% if order.reversed %}
106 src="{% static "images/16-arrow-up.png" %}"
108 src="{% static "images/16-arrow-down.png" %}"
110 width="16" height="16"
111 ></a> <a class="colactive"
112 href="{% listurl order=order.reversed_name %}">Submitter</a>
114 {% if not order.editable %}
115 <a class="colinactive" href="{% listurl order="submitter" %}">Submitter</a>
117 <span class="colinactive">Submitter</span>
123 {% ifequal order.name "delegate" %}
125 href="{% listurl order=order.reversed_name %}"><img
126 {% if order.reversed %}
127 src="{% static "images/16-arrow-up.png" %}"
129 src="{% static "images/16-arrow-down.png" %}"
131 width="16" height="16"
132 ></a> <a class="colactive"
133 href="{% listurl order=order.reversed_name %}">Delegate</a>
135 {% if not order.editable %}
136 <a class="colinactive" href="{% listurl order="delegate" %}">Delegate</a>
138 <span class="colinactive">Delegate</span>
144 {% ifequal order.name "state" %}
146 href="{% listurl order=order.reversed_name %}"><img
147 {% if order.reversed %}
148 src="{% static "images/16-arrow-up.png" %}"
150 src="{% static "images/16-arrow-down.png" %}"
152 width="16" height="16"
153 ></a> <a class="colactive"
154 href="{% listurl order=order.reversed_name %}">State</a>
156 {% if not order.editable %}
157 <a class="colinactive" href="{% listurl order="state" %}">State</a>
159 <span class="colinactive">State</span>
167 {% if page.paginator.count %}
169 {% for patch in page.object_list %}
170 <tr id="patch_row:{{patch.id}}" class="{% cycle 'odd' 'even' %}">
171 {% if user.is_authenticated %}
173 <input type="checkbox" name="patch_id:{{patch.id}}"/>
176 <td><a href="{% url 'patchwork.views.patch.patch' patch_id=patch.id %}"
177 >{{ patch.name|default:"[no subject]" }}</a></td>
178 <td style="white-space: nowrap;">{{ patch|patch_tags }}</td>
179 <td>{{ patch.date|date:"Y-m-d" }}</td>
180 <td>{{ patch.submitter|personify:project }}</td>
181 <td>{{ patch.delegate.username }}</td>
182 <td>{{ patch.state }}</td>
188 {% include "patchwork/pagination.html" %}
190 <div class="patchforms" id="patchforms" name="patchforms">
193 <div class="patchform patchform-properties">
197 <th>Change state:</th>
199 {{ patchform.state }}
200 {{ patchform.state.errors }}
204 <th>Delegate to:</td>
206 {{ patchform.delegate }}
207 {{ patchform.delegate.errors }}
213 {{ patchform.archived }}
214 {{ patchform.archived.errors }}
220 <input type="submit" name="action" value="{{patchform.action}}"/>
228 {% if user.is_authenticated %}
229 <div class="patchform patchform-bundle">
233 <td>Create bundle:</td>
235 <input type="text" name="bundle_name"/>
236 <input name="action" value="Create" type="submit"/>
241 <td>Add to bundle:</td>
243 <select name="bundle_id"/>
244 {% for bundle in bundles %}
245 <option value="{{bundle.id}}">{{bundle.name}}</option>
248 <input name="action" value="Add" type="submit"/>
254 <td>Remove from bundle:</td>
256 <input type="hidden" name="removed_bundle_id" value="{{bundle.id}}"/>
257 <input name="action" value="Remove" type="submit"/>
266 <div style="clear: both;">
272 <td colspan="6">No patches to display</td>