]> 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 770f0051ea83e50f9d6f2494bc7da31972d0ab11..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>