]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - templates/tracker-torrent-detail.html
Move everything to the root of the repository.
[people/shoehn/ipfire.org.git] / templates / tracker-torrent-detail.html
diff --git a/templates/tracker-torrent-detail.html b/templates/tracker-torrent-detail.html
new file mode 100644 (file)
index 0000000..a4d8c52
--- /dev/null
@@ -0,0 +1,31 @@
+{% extends "base-1.html" %}
+
+{% block title %}{{ file.basename }} - {{ release.name }} - {{ _("Torrent download") }}{% end block %}
+
+{% block body %}
+       <div class="page-header">
+               <h1>
+                       {{ file.basename }}
+                       <small>{{ release.name }}</small>
+               </h1>
+       </div>
+
+       <p class="pull-right">
+               <a class="btn" href="{{ file.magnet_link }}">
+                       <i class="icon-magnet"></i> {{ _("Magnet link") }}
+               </a>
+               <a class="btn" href="http://tracker.ipfire.org/{{ file.torrent_hash }}/download">
+                       <i class="icon-download-alt"></i> {{ _("Torrent download") }}
+               </a>
+       </p>
+
+       {% if peers %}
+               <h3>{{ _("Peers") }}</h3>
+               {{ modules.TrackerPeerList(peers, percentages=True) }}
+       {% end %}
+
+       {% if seeds %}
+               <h3>{{ _("Seeds") }}</h3>
+               {{ modules.TrackerPeerList(seeds) }}
+       {% end %}
+{% end block %}