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