diff options
author | Dan McGee <dan@archlinux.org> | 2014-01-07 21:16:00 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-01-09 15:41:23 +0100 |
commit | b47b4e73b856b34afa07b1d72367dba4a7c6c005 (patch) | |
tree | 6001e7b3efbc0c1e3be29b0c343e5cd32106a9f8 /templates/releng | |
parent | 67a0c0ac088ed2d48fc785f13097557ed6ad25cf (diff) | |
download | archweb-b47b4e73b856b34afa07b1d72367dba4a7c6c005.tar.gz archweb-b47b4e73b856b34afa07b1d72367dba4a7c6c005.tar.xz |
Remove release fields we can pull from the torrent
This makes entering new releases a bit less cumbersome as we don't
really need to enter either the file size or the torrent infohash.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/releng')
-rw-r--r-- | templates/releng/release_detail.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/templates/releng/release_detail.html b/templates/releng/release_detail.html index 0950753..5cd1c43 100644 --- a/templates/releng/release_detail.html +++ b/templates/releng/release_detail.html @@ -10,14 +10,12 @@ <li><strong>Release Date:</strong> {{ release.release_date|date }}</li> {% if release.kernel_version %}<li><strong>Kernel Version:</strong> {{ release.kernel_version }}</li>{% endif %} <li><strong>Available:</strong> {{ release.available|yesno }}</li> - {% if release.available %}<li><strong>Download:</strong> <a + {% if release.torrent_data %}<li><strong>Download:</strong> <a href="{% url 'releng-release-torrent' release.version %}" title="Download torrent for {{ release.version }}">Torrent</a>, <a href="{{ release.magnet_uri }}">Magnet</a></li>{% endif %} - {% if release.torrent_infohash %}<li><strong>Torrent Info Hash:</strong> {{ release.torrent_infohash }}</li>{% endif %} {% if release.md5_sum %}<li><strong>MD5:</strong> {{ release.md5_sum }}</li>{% endif %} {% if release.sha1_sum %}<li><strong>SHA1:</strong> {{ release.sha1_sum }}</li>{% endif %} - <li><strong>Download Size:</strong> {% if release.file_size %}{{ release.file_size|filesizeformat }}{% else %}Unknown{% endif %}</li> </ul> {% if release.info %} @@ -38,7 +36,7 @@ <li><strong>File Length:</strong> {{ torrent.file_length|filesizeformat }}</li> <li><strong>Piece Count:</strong> {{ torrent.piece_count }} pieces</li> <li><strong>Piece Length:</strong> {{ torrent.piece_length|filesizeformat }}</li> - <li><strong>Computed Info Hash:</strong> {{ torrent.info_hash }}</li> + <li><strong>Info Hash:</strong> {{ torrent.info_hash }}</li> <li><strong>URL List Length:</strong> {{ torrent.url_list|length }} URLs</li> </ul> {% endwith %}{% endif %} |