]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/bundle.html
bundles: Remove separate public bundle views
[patchwork] / templates / patchwork / bundle.html
index a2933d5ff258ea9687c1edeff4f4b3e790086646..54c2fcc74997b6669326c7c7c039c06fed8ac888 100644 (file)
   </script>
 {% endblock %}
 {% block title %}{{project.name}}{% endblock %}
-{% block heading %}bundle: {{bundle.name}}{% endblock %}
+{% block heading %}bundle: {{bundle.owner.username}} /
+{{bundle.name}}{% endblock %}
 
 {% block body %}
 
 <p>This bundle contains patches for the {{ bundle.project.linkname }}
 project.</p>
 
-<p><a href="{% url patchwork.views.bundle.mbox bundle_id=bundle.id %}"
->Download bundle as mbox</a></p>
-
+<p><a href="{% url patchwork.views.bundle.mbox username=bundle.owner.username bundlename=bundle.name %}">Download bundle as mbox</a></p>
 
+{% if bundleform %}
 <form method="post">
  {% csrf_token %}
  <input type="hidden" name="form" value="bundle"/>
@@ -45,6 +45,7 @@ project.</p>
 </form>
 
 <div style="clear: both; padding: 1em;"></div>
+{% endif %}
 
 {% include "patchwork/patch-list.html" %}