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