]> git.ozlabs.org Git - patchwork/blob - templates/patchwork/bundles.html
5340a6430b132c943cc9dcb4425d76324c51f845
[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="{% url patchwork.views.bundle.bundle bundle_id=bundle.id %}"
21    >{{ bundle.name }}</a></td>
22   <td>{{ bundle.project.linkname }}</td>
23   <td>
24    {% if bundle.public %}
25     <a href="{{ bundle.public_url }}">{{ bundle.public_url }}</a>
26    {% endif %}
27   </td>
28   <td style="text-align: right">{{ bundle.n_patches }}</td>
29   <td style="text-align: center;"><a
30    href="{% url patchwork.views.bundle.mbox bundle_id=bundle.id %}"
31    ><img src="/images/16-em-down.png" width="16" height="16" alt="download"
32    title="download"/></a></td>
33   <td style="text-align: center;">
34    <form method="post"
35     onsubmit="return confirm_delete('bundle', '{{bundle.name|escapejs}}');">
36     {% csrf_token %}
37     {{ bundle.delete_form.as_p }}
38     <input type="image"
39      src="/images/16-em-cross.png" width="16" height="16" alt="delete"
40      title="delete" border="0" style="border: none;"/>
41    </form>
42   </td>
43
44  </tr>
45 {% endfor %}
46 </table>
47 {% endif %}
48
49 <p>Bundles are groups of related patches. You can create bundles by
50 selecting patches from a project, then using the 'create bundle' form
51 to give your bundle a name. Each bundle can be public or private; public
52 bundles are given a persistent URL, based you your username and the name
53 of the bundle. Private bundles are only visible to you.</p>
54
55 {% if not bundles %}
56 <p>You have no bundles.</p>
57 {% endif %}
58 {% endblock %}