Skip to content

Commit 0da92e1

Browse files
committed
Add size and verification to quick download list
Fixes #24 Signed-off-by: Michal Čihař <[email protected]>
1 parent f85518f commit 0da92e1

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

pmaweb/templates/files/release_list.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,30 @@
66

77
<table>
88
<thead>
9-
<tr><th>Release</th><th>Date</th><th>Quick download</th></tr>
9+
<tr>
10+
<th>Release</th>
11+
<th>Date</th>
12+
<th>Quick download</th>
13+
<th>Size</th>
14+
<th>Verification</th>
15+
</tr>
1016
</thead>
1117
<tbody>
1218
{% for object in object_list %}
1319
<tr>
1420
<th><a href="{{ object.get_absolute_url }}">{{ object }}</a></th>
1521
<td>{{ object.date|date:"Y-m-d" }}</td>
16-
<td><a href="{{ object.simpledownload.get_absolute_url }}">{{ object.simpledownload.filename }}</a></td>
22+
{% with object.simpledownload as file %}
23+
<td><a href="{{ file.get_absolute_url }}">{{ file.filename }}</a></td>
24+
<td class="size">{{ file.size | filesizeformat }}</td>
25+
<td>
26+
{% if file.signed %}
27+
[<a href="{{ file.get_signed_url }}">PGP</a>]
28+
{% endif %}
29+
[<a href="{{ file.get_absolute_url }}.sha1">SHA1</a>]
30+
[<a href="{{ file.get_absolute_url }}.sha256">SHA256</a>]
31+
</td>
32+
{% endwith %}
1733
</tr>
1834
{% endfor %}
1935
</tbody>

0 commit comments

Comments
 (0)