]> git.ipfire.org Git - ipfire.org.git/blob - templates/modules/release-item.html
26c21c927e67ae5724d2be739166cfc7a886693c
[ipfire.org.git] / templates / modules / release-item.html
1 <div class="page-header">
2 <h2>
3 {% if latest %}{{ _("Latest release") }}:{% end %}
4 {{ release.name }}
5 </h2>
6 </div>
7
8 {% if release.files %}
9 {% if not release.stable %}
10 <div class="alert alert-danger">
11 <h4>{{ _("Caution!") }}</h4>
12
13 This release is not a stable version of IPFire and
14 intended for testing purposes only.
15 Do not use this release in production and please
16 report any bugs.
17 </div>
18 {% end %}
19
20 <div class="ac">
21 {% module DownloadButton(release) %}
22 </div>
23
24 {% for arch, files in downloads %}
25 <h3>{{ arch }}</h3>
26
27 <ul class="list-group">
28 {% for file in files %}
29 <li class="list-group-item">
30 {% if file.size >= 1024 * 1024 %}
31 <div class="pull-right">
32 <code class="hidden-sm hidden-xs">{{ _("SHA1: %s") % file.sha1 }}</code>
33 <span class="label label-default">{{ format_size(file.size) }}</span>
34
35 <div class="btn-group">
36 {% if file.magnet_link %}
37 <a class="btn btn-default btn-xs" href="{{ file.magnet_link }}" title="{{ _("Magnet Link") }}">
38 <span class="glyphicon glyphicon-magnet"></span>
39 </a>
40 {% end %}
41
42 {% if file.torrent_url %}
43 <a class="btn btn-default btn-xs" href="{{ file.torrent_url }}" title="{{ _("Torrent Download") }}">
44 <span class="glyphicon glyphicon-download-alt"></span>
45 </a>
46 {% end %}
47 </div>
48 </div>
49 {% end %}
50
51 <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
52 </li>
53 {% end %}
54 </ul>
55 {% end %}
56
57 {% if release.news %}
58 {% module NewsItem(release.news, show_heading=True, announcement=True) %}
59 {% end %}
60 {% else %}
61 <div class="alert alert-warning">
62 {{ _("There are no downloads available for this release.") }}
63 </div>
64 {% end %}