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