]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - templates/modules/release-item.html
Massive web site update
[people/shoehn/ipfire.org.git] / templates / modules / release-item.html
index 64792b14ff85b78328661eb538f32ef699e84907..9cbaf720f76058220eb3cb4dcf97f568494fcef0 100644 (file)
                {% module DownloadButton(release) %}
        </div>
 
-       <hr>
-
        {% for arch, files in downloads %}
                <h3>{{ arch }}</h3>
 
-               <table class="table table-striped table-bordered">
-                       <thead>
-                               <tr>
-                                       <th>{{ _("Image type") }}</th>
-                                       <th>{{ _("Size") }}</th>
-                               </tr>
-                       </thead>
-                       <tbody>
-                               {% for file in files %}
-                                       <tr>
-                                               <td>
-                                                       {% if file.torrent_hash %}
-                                                               <p class="pull-right">
-                                                                       <a href="{{ file.magnet_link }}">
-                                                                               <i class="glyphicon glyphicon-magnet"></i>
-                                                                       </a>
-                                                                       <a href="http://tracker.ipfire.org/{{ file.torrent_hash }}/download">
-                                                                               <i class="glyphicon glyphicon-download-alt"></i>
-                                                                       </a>
-                                                               </p>
-                                                       {% end %}
-                                                       <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
-                                                       <br>{{ _(file.rem) }}
+               <ul class="list-group">
+                       {% for file in files %}
+                               <li class="list-group-item">
+                                       {% if file.size >= 1024 * 1024 %}
+                                               <div class="pull-right">
+                                                       <code class="hidden-sm hidden-xs">{{ _("SHA1: %s") % file.sha1 }}</code>
+                                                       <span class="label label-default">{{ format_size(file.size) }}</span>
 
-                                                       {% if file.sha1 %}
-                                                               <br><br><em>{{ _("SHA1 checksum") }}: {{ file.sha1 }}</em>
-                                                       {% end %}
-                                               </td>
-                                               <td>
-                                                       {{ format_size(file.size) }}
-                                               </td>
-                                       </tr>
-                               {% end %}
-                       </tbody>
-               </table>
-       {% end %}
+                                                       <div class="btn-group">
+                                                               <a class="btn btn-default btn-xs" href="{{ file.magnet_link }}" title="{{ _("Magnet Link") }}">
+                                                                       <span class="glyphicon glyphicon-magnet"></span>
+                                                               </a>
+                                                               <a class="btn btn-default btn-xs" href="http://tracker.ipfire.org/{{ file.torrent_hash }}/download" title="{{ _("Torrent Download") }}">
+                                                                       <span class="glyphicon glyphicon-download-alt"></span>
+                                                               </a>
+                                                       </div>
+                                               </div>
+                                       {% end %}
 
-       <p class="pull-right">
-               <strong>{{ _("Legend:") }}</strong>
-               <i class="glyphicon glyphicon-magnet"></i> {{ _("Magnet link") }},
-               <i class="glyphicon glyphicon-download-alt"></i> {{ _("Torrent download") }}
-       </p>
+                                       <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
+                               </li>
+                       {% end %}
+               </ul>
+       {% end %}
 
        {% if release.news %}
-               <hr>
-
                {% module NewsItem(release.news, show_heading=True, announcement=True) %}
        {% end %}
 {% else %}