summaryrefslogtreecommitdiffstats
path: root/templates/patchwork/bundles.html
blob: a725d9552492dffb23dfc964e4814b0f88b8ec4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% extends "base.html" %}

{% block title %}Bundles{% endblock %}
{% block heading %}Bundles{% endblock %}

{% block body %}

{% if bundles %}
<table class="bundlelist">
 <tr>
  <th>Name</th>
  <th>Project</th>
  <th>Public Link</th>
  <th>Patches</td>
  <th>Download</th>
  <th>Delete</th>
 </tr>
{% for bundle in bundles %}
 <tr>
  <td><a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a></td>
  <td>{{ bundle.project.linkname }}</td>
  <td>
   {% if bundle.public %}
    <a href="{{ bundle.public_url }}">{{ bundle.public_url }}</a>
   {% endif %}
  </td>
  <td style="text-align: right">{{ bundle.n_patches }}</td>
  <td style="text-align: center;"><a
   href="{% url 'patchwork.views.bundle.mbox' username=bundle.owner.username bundlename=bundle.name %}"
   ><img src="/images/16-em-down.png" width="16" height="16" alt="download"
   title="download"/></a></td>
  <td style="text-align: center;">
   <form method="post"
    onsubmit="return confirm_delete('bundle', '{{bundle.name|escapejs}}');">
    {% csrf_token %}
    {{ bundle.delete_form.as_p }}
    <input type="image"
     src="/images/16-em-cross.png" width="16" height="16" alt="delete"
     title="delete" border="0" style="border: none;"/>
   </form>
  </td>

 </tr>
{% endfor %}
</table>
{% endif %}

<p>Bundles are groups of related patches. You can create bundles by
selecting patches from a project, then using the 'create bundle' form
to give your bundle a name. Each bundle can be public or private; public
bundles are given a persistent URL, based you your username and the name
of the bundle. Private bundles are only visible to you.</p>

{% if not bundles %}
<p>You have no bundles.</p>
{% endif %}
{% endblock %}