]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - www/templates/modules/release-item.html
Add torrent and magnet links for all downloads.
[people/shoehn/ipfire.org.git] / www / templates / modules / release-item.html
index c0df5a0f91483e66d525117c61c4cdc845ed8de3..1c3dfcff2bb4f83d3612aa71cc45f138e67500ba 100644 (file)
                                                        {% for file in files[arch] %}
                                                                <tr>
                                                                        <td>
+                                                                               {% if file.torrent_hash %}
+                                                                                       <p class="pull-right">
+                                                                                               <a href="{{ file.magnet_link }}">
+                                                                                                       <i class="icon-magnet"></i>
+                                                                                               </a>
+                                                                                               <a href="http://tracker.ipfire.org/{{ file.torrent_hash }}/download">
+                                                                                                       <i class="icon-download-alt"></i>
+                                                                                               </a>
+                                                                                       </p>
+                                                                               {% end %}
                                                                                <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
                                                                                <br>{{ _(file.rem) }}
                                                                        </td>
                                                        {% end %}
                                                </tbody>                                                        
                                        </table>
+
+                                       <p class="pull-right">
+                                               <strong>{{ _("Legend:") }}</strong>
+                                               <i class="icon-magnet"></i> {{ _("Magnet link") }},
+                                               <i class="icon-download-alt"></i> {{ _("Torrent download") }}
+                                       </p>
                                </div>
                        {% end %}
                </div>