]> git.ozlabs.org Git - patchwork/blobdiff - templates/patchwork/bundle.html
js: Add jquery and jquery tablednd plugins
[patchwork] / templates / patchwork / bundle.html
index 616a62ee93551c30b2ae13eaeb2b2814b4e57dae..4bc6e084af450d5ebdcfcdc8f5e941e459202785 100644 (file)
@@ -4,28 +4,29 @@
 
 {% block headers %}
   <script language="JavaScript" type="text/javascript"
-   src="/js/jquery-1.3.min.js">
+   src="/js/jquery-1.10.1.min.js">
   </script>
   <script language="JavaScript" type="text/javascript"
-   src="/js/jquery.tablednd_0_5.js">
+   src="/js/jquery.tablednd.js">
   </script>
   <script language="JavaScript" type="text/javascript"
    src="/js/bundle.js">
   </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"/>
 <table class="form">
 
@@ -44,6 +45,7 @@ project.</p>
 </form>
 
 <div style="clear: both; padding: 1em;"></div>
+{% endif %}
 
 {% include "patchwork/patch-list.html" %}