]> git.ozlabs.org Git - patchwork/blob - patchwork/templates/patchwork/bundles.html
Move to a more recent django project structure
[patchwork] / patchwork / templates / patchwork / bundles.html
1 {% extends "base.html" %}
2
3 {% load static %}
4
5 {% block title %}Bundles{% endblock %}
6 {% block heading %}Bundles{% endblock %}
7
8 {% block body %}
9
10 {% if bundles %}
11 <table class="bundlelist">
12  <tr>
13   <th>Name</th>
14   <th>Project</th>
15   <th>Public Link</th>
16   <th>Patches</td>
17   <th>Download</th>
18   <th>Delete</th>
19  </tr>
20 {% for bundle in bundles %}
21  <tr>
22   <td><a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a></td>
23   <td>{{ bundle.project.linkname }}</td>
24   <td>
25    {% if bundle.public %}
26     <a href="{{ bundle.public_url }}">{{ bundle.public_url }}</a>
27    {% endif %}
28   </td>
29   <td style="text-align: right">{{ bundle.n_patches }}</td>
30   <td style="text-align: center;"><a
31    href="{% url 'patchwork.views.bundle.mbox' username=bundle.owner.username bundlename=bundle.name %}"
32    ><img src="{% static "images/16-em-down.png" %}" width="16" height="16" alt="download"
33    title="download"/></a></td>
34   <td style="text-align: center;">
35    <form method="post"
36     onsubmit="return confirm_delete('bundle', '{{bundle.name|escapejs}}');">
37     {% csrf_token %}
38     {{ bundle.delete_form.as_p }}
39     <input type="image"
40      src="{% static "images/patchwork/16-em-cross.png" %}" width="16" height="16" alt="delete"
41      title="delete" border="0" style="border: none;"/>
42    </form>
43   </td>
44
45  </tr>
46 {% endfor %}
47 </table>
48 {% endif %}
49
50 <p>Bundles are groups of related patches. You can create bundles by
51 selecting patches from a project, then using the 'create bundle' form
52 to give your bundle a name. Each bundle can be public or private; public
53 bundles are given a persistent URL, based you your username and the name
54 of the bundle. Private bundles are only visible to you.</p>
55
56 {% if not bundles %}
57 <p>You have no bundles.</p>
58 {% endif %}
59 {% endblock %}