]> git.ozlabs.org Git - patchwork/blobdiff - patchwork/templates/patchwork/bundle.html
Move to a more recent django project structure
[patchwork] / patchwork / templates / patchwork / bundle.html
diff --git a/patchwork/templates/patchwork/bundle.html b/patchwork/templates/patchwork/bundle.html
new file mode 100644 (file)
index 0000000..4a96b6b
--- /dev/null
@@ -0,0 +1,47 @@
+{% extends "base.html" %}
+
+{% load person %}
+{% load static %}
+
+{% block headers %}
+  <script type="text/javascript" src="{% static "js/jquery-1.10.1.min.js" %}"></script>
+  <script type="text/javascript" src="{% static "js/jquery.tablednd.js" %}"></script>
+  <script type="text/javascript" src="{% static "js/bundle.js" %}"></script>
+{% endblock %}
+{% block title %}{{project.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' 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">
+
+ <tr>
+  <th colspan="2" class="headerrow">Bundle settings</th>
+ </tr>
+
+{{ bundleform }}
+ <tr>
+  <td colspan="2" class="submitrow">
+   <input type="submit" name="action" value="Update"/>
+   <input type="submit" name="action" value="Delete"/>
+  </td>
+ </tr>
+</table>
+</form>
+
+<div style="clear: both; padding: 1em;"></div>
+{% endif %}
+
+{% include "patchwork/patch-list.html" %}
+
+{% endblock %}