]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/patch-list.html
[html] Add select-all checkbox for patch lists
[patchwork] / templates / patchwork / patch-list.html
index 14a0f0cfd7cd2e87b6cc701d1efb5eb50bf6dbf2..4c6b8a508f18a60fae3ac5ff1ff60d227b768489 100644 (file)
 <input type="hidden" name="project" value="{{project.id}}"/>
 <table class="patchlist">
  <tr>
-  {% if patchform or bundle %}
-  <th/>
+  {% if user.is_authenticated %}
+  <th>
+   <input type="checkbox" onChange="select_all(this)"/>
+  </th>
   {% endif %}
 
   <th>
 {% if page %}
  {% for patch in page.object_list %}
   <tr class="{% cycle 'odd' 'even' %}">
-    {% if patchform or bundle %}
+    {% if user.is_authenticated %}
     <td>
     <input type="checkbox" name="patch_id:{{patch.id}}"/>
     </td>