]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/bundles.html
Django 1.5 compatibility fixes
[patchwork] / templates / patchwork / bundles.html
index 7f87f6fe8a5675e9b2a790985d38ccf59a05b11f..a725d9552492dffb23dfc964e4814b0f88b8ec4f 100644 (file)
@@ -3,11 +3,6 @@
 {% block title %}Bundles{% endblock %}
 {% block heading %}Bundles{% endblock %}
 
-{% block headers %}
- <script language="JavaScript" type="text/javascript" src="/js/confirm.js">
- </script>
-{% endblock %}
-
 {% block body %}
 
 {% if bundles %}
@@ -22,8 +17,7 @@
  </tr>
 {% for bundle in bundles %}
  <tr>
-  <td><a href="{% url patchwork.views.bundle.bundle bundle_id=bundle.id %}"
-   >{{ bundle.name }}</a></td>
+  <td><a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a></td>
   <td>{{ bundle.project.linkname }}</td>
   <td>
    {% if bundle.public %}
   </td>
   <td style="text-align: right">{{ bundle.n_patches }}</td>
   <td style="text-align: center;"><a
-   href="{% url patchwork.views.bundle.mbox bundle_id=bundle.id %}"
+   href="{% url 'patchwork.views.bundle.mbox' username=bundle.owner.username bundlename=bundle.name %}"
    ><img src="/images/16-em-down.png" width="16" height="16" alt="download"
    title="download"/></a></td>
   <td style="text-align: center;">
    <form method="post"
     onsubmit="return confirm_delete('bundle', '{{bundle.name|escapejs}}');">
+    {% csrf_token %}
     {{ bundle.delete_form.as_p }}
     <input type="image"
      src="/images/16-em-cross.png" width="16" height="16" alt="delete"