From 71c0c7453a5bc28b6e6576fe4f1351139f33ade5 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 19 Jan 2013 13:08:06 -0600 Subject: Implement torrent data parsing and extraction via bencode This allows uploading of the actual torrent file itself into the webapp and then pulling the relevant pieces of information out of it. Signed-off-by: Dan McGee --- templates/releng/release_detail.html | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'templates/releng/release_detail.html') diff --git a/templates/releng/release_detail.html b/templates/releng/release_detail.html index fec9ce2..f4de9e5 100644 --- a/templates/releng/release_detail.html +++ b/templates/releng/release_detail.html @@ -9,9 +9,10 @@
  • Release Date: {{ release.release_date|date }}
  • {% if release.kernel_version %}
  • Kernel Version: {{ release.kernel_version }}
  • {% endif %}
  • Available: {{ release.available|yesno }}
  • - {% if release.available %}
  • Torrent
  • {% endif %} - {% if release.available %}
  • Magnet
  • {% endif %} + {% if release.available %}
  • Download: Torrent, + Magnet
  • {% endif %} + {% if release.torrent_infohash %}
  • Torrent Info Hash: {{ release.torrent_infohash }}
  • {% endif %}
  • Download Size: {% if release.file_size %}{{ release.file_size|filesizeformat }}{% else %}Unknown{% endif %}
  • @@ -20,5 +21,22 @@
    {{ release.info_html }}
    {% endif %} + + {% if release.torrent_data %}{% with release.torrent as torrent %} +

    Torrent Information

    + + + {% endwith %}{% endif %} {% endblock %} -- cgit v1.2.3-24-g4f1b