Skip to content

Commit

Permalink
Add size and verification to quick download list
Browse files Browse the repository at this point in the history
Fixes #24

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Aug 4, 2016
1 parent f85518f commit 0da92e1
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions pmaweb/templates/files/release_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,30 @@

<table>
<thead>
<tr><th>Release</th><th>Date</th><th>Quick download</th></tr>
<tr>
<th>Release</th>
<th>Date</th>
<th>Quick download</th>
<th>Size</th>
<th>Verification</th>
</tr>
</thead>
<tbody>
{% for object in object_list %}
<tr>
<th><a href="{{ object.get_absolute_url }}">{{ object }}</a></th>
<td>{{ object.date|date:"Y-m-d" }}</td>
<td><a href="{{ object.simpledownload.get_absolute_url }}">{{ object.simpledownload.filename }}</a></td>
{% with object.simpledownload as file %}
<td><a href="{{ file.get_absolute_url }}">{{ file.filename }}</a></td>
<td class="size">{{ file.size | filesizeformat }}</td>
<td>
{% if file.signed %}
[<a href="{{ file.get_signed_url }}">PGP</a>]
{% endif %}
[<a href="{{ file.get_absolute_url }}.sha1">SHA1</a>]
[<a href="{{ file.get_absolute_url }}.sha256">SHA256</a>]
</td>
{% endwith %}
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 0da92e1

Please sign in to comment.