]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/patch-list.html
templates: display projects as inline-block elements
[patchwork] / templates / patchwork / patch-list.html
index fe4d6060e4cd5a16670ace0e06df834db810cae1..59adbe3017215b029814bed149723baa336bb28f 100644 (file)
   </tr>
  </thead>
 
-{% if page %}
+{% if page.paginator.count %}
  <tbody>
  {% for patch in page.object_list %}
   <tr id="patch_row:{{patch.id}}" class="{% cycle 'odd' 'even' %}">
     <input type="checkbox" name="patch_id:{{patch.id}}"/>
     </td>
     {% endif %}
-   <td><a href="{% url patchwork.views.patch.patch patch_id=patch.id %}"
+   <td><a href="{% url 'patchwork.views.patch.patch' patch_id=patch.id %}"
      >{{ patch.name|default:"[no subject]" }}</a></td>
    <td>{{ patch.date|date:"Y-m-d" }}</td>
    <td>{{ patch.submitter|personify }}</td>
      <tr>
       <td></td>
       <td>
-       <input type="submit" name="action" value="Update"/>
+       <input type="submit" name="action" value="{{patchform.action}}"/>
       </td>
      </tr>
     </table>
  <div class="patchform patchform-bundle">
   <h3>Bundling</h3>
    <table class="form">
-   <!--
-    <tr>
-     <td>Ack:</td>
-     <td>
-       <input type="submit" name="action" value="Ack"/>
-      </form>
-     </td>
-    </tr>
-    -->
     <tr>
      <td>Create bundle:</td>
      <td>