-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathbundles.html
More file actions
66 lines (59 loc) · 1.88 KB
/
bundles.html
File metadata and controls
66 lines (59 loc) · 1.88 KB
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
58
59
60
61
62
63
64
65
66
{% extends "base.html" %}
{% load static %}
{% block title %}Bundles{% endblock %}
{% block bundle_active %}active{% endblock %}
{% block body %}
<h1>Bundles</h1>
{% if bundles %}
<table class="bundlelist">
<tr>
<th>Bundle</th>
<th>Project</th>
<th>Public</th>
<th>Patches</th>
<th>Download</th>
<th>Delete</th>
</tr>
{% for bundle in bundles %}
<tr>
<td><a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a></td>
<td>
<a href="{% url 'project-detail' project_id=bundle.project.linkname %}">
{{ bundle.project.linkname }}
</a>
</td>
<td style="text-align: center;">
{% if bundle.public %}
<span class="glyphicon glyphicon-ok"></span>
{% else %}
<span class="glyphicon glyphicon-remove"></span>
{% endif %}
</td>
<td style="text-align: right">{{ bundle.patches.count }}</td>
<td style="text-align: center;"><a href="{{ bundle.get_mbox_url }}"
><span class="glyphicon glyphicon-download-alt"></span></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 }}
<button type="submit" style="background: transparent; border: 0px; padding: 0; outline: 0;">
<span class="glyphicon glyphicon-remove"></span>
</button>
</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 on 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 %}