]> git.ipfire.org Git - ipfire.org.git/blame - templates/modules/release-item.html
.gitignore: Add .vscode
[ipfire.org.git] / templates / modules / release-item.html
CommitLineData
110e8687
MT
1<div class="page-header">
2 <h2>
3 {% if latest %}{{ _("Latest release") }}:{% end %}
4 {{ release.name }}
5 </h2>
6</div>
940227cb 7
60024cc8 8{% if release.files %}
110e8687
MT
9 {% if not release.stable %}
10 <div class="alert alert-danger">
11 <h4>{{ _("Caution!") }}</h4>
60024cc8 12
e52b45b6
MT
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.
110e8687
MT
17 </div>
18 {% end %}
7771acea 19
110e8687
MT
20 <div class="ac">
21 {% module DownloadButton(release) %}
22 </div>
7771acea 23
110e8687
MT
24 {% for arch, files in downloads %}
25 <h3>{{ arch }}</h3>
81675874 26
60b0917c
MT
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>
d479776f 34
60b0917c 35 <div class="btn-group">
5276cd41
MT
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 %}
60b0917c
MT
47 </div>
48 </div>
49 {% end %}
fadcfd00 50
60b0917c
MT
51 <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
52 </li>
53 {% end %}
54 </ul>
55 {% end %}
2fed2438
MT
56
57 {% if release.news %}
2fed2438
MT
58 {% module NewsItem(release.news, show_heading=True, announcement=True) %}
59 {% end %}
940227cb 60{% else %}
985edd9f 61 <div class="alert alert-warning">
60024cc8
MT
62 {{ _("There are no downloads available for this release.") }}
63 </div>
940227cb 64{% end %}