]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - 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
CommitLineData
60024cc8
MT
1<h2>
2 {% if latest %}{{ _("Latest release") }}:{% end %}
3 {{ escape(release.name) }}
4</h2>
940227cb 5
60024cc8 6<br>
940227cb 7
60024cc8
MT
8{% if release.files %}
9 <div class="tabbable">
10 <ul class="nav nav-tabs">
11 <li class="active">
12 <a href="#arch_unknown" data-toggle="tab">{{ _("Choose an architecture:") }}</a>
13 </li>
14 {% if files["i586"] %}
15 <li><a href="#arch_i586" data-toggle="tab">i586</a></li>
16 {% end %}
17 {% if files["arm"] %}
18 <li><a href="#arch_arm" data-toggle="tab">ARM</a></li>
19 {% end %}
20 </ul>
940227cb 21
60024cc8
MT
22 <div class="tab-content">
23 <div class="tab-pane active" id="arch_unknown">
24 {{ modules.DownloadButton(release) }}
940227cb 25
60024cc8
MT
26 {% if lang == "de" %}
27 <p>
694e0e42 28 Bitte klicke auf den Button, um IPFire für
60024cc8
MT
29 i586-kompatible Computer als ISO-Installationsimage
30 herunterzuladen.
31 Dies ist das am häufigsten benötigte Medium.
32 </p>
33 <p>
34 In der Tableiste finden sich alternative Architekturen
35 und Imageformate zum Download.
36 </p>
37 {% else %}
38 <p>
39 Please click the button to download the IPFire
40 ISO image for i586-compatible computers.
41 This is the default image, you will most likely
42 need to install IPFire.
43 </p>
44 <p>
45 You may also pick your desired architecture from
46 the tabs above and see a list of all image
47 formats.
48 </p>
49 {% end %}
50
51 {% if release.stable == "N" %}
52 <div class="alert alert-info">
53 {% if lang == "de" %}
54 Dieses Release ist nicht als <em>stabile</em> Version
55 von IPFire freigegeben und nur für Testumgebungen gedacht.
56 Daher sollte dieses Release nicht in produktiven
57 Umgebungen eingesetzt werden und Fehler berichtet werden.
58 {% else %}
59 This release is not a stable version of IPFire and
60 intended for testing purposes only.
61 Do not use this release in production and please
62 report any bugs.
63 {% end %}
64 </div>
65 {% end %}
66 </div>
81675874 67
60024cc8
MT
68 {% for arch in files.keys() %}
69 <div class="tab-pane" id="arch_{{ arch }}">
70 <!-- {% if lang == "de" %}
71 {% if arch == "i586" %}
72 <p>
73 Diese Images sind für den Einsatz auf Intel-kompatiblen
74 Systemen gedacht. Dazu gehört die gesamte Klasse der
75 x86er Systeme ab Pentium I.
76 </p>
77 {% end %}
78 {% else %}
79 {% if arch == "i586" %}
80 <p>
81 These images are built for Intel-compatible systems.
82 This is the entire class of x86 CPUs since Intel
83 Pentium I.
84 </p>
85 {% end %}
86 {% end %} -->
940227cb 87
60024cc8
MT
88 <table class="table table-striped table-bordered">
89 <thead>
90 <tr>
91 <th>{{ _("Image type") }}</th>
92 <th>{{ _("Size") }}</th>
93 </tr>
94 </thead>
95 <tbody>
96 {% for file in files[arch] %}
97 <tr>
98 <td>
fadcfd00
MT
99 {% if file.torrent_hash %}
100 <p class="pull-right">
101 <a href="{{ file.magnet_link }}">
102 <i class="icon-magnet"></i>
103 </a>
104 <a href="http://tracker.ipfire.org/{{ file.torrent_hash }}/download">
105 <i class="icon-download-alt"></i>
106 </a>
107 </p>
108 {% end %}
60024cc8
MT
109 <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
110 <br>{{ _(file.rem) }}
111 </td>
112 <td>
113 {{ format_size(file.size) }}
114 </td>
115 </tr>
116 {% end %}
117 </tbody>
118 </table>
fadcfd00
MT
119
120 <p class="pull-right">
121 <strong>{{ _("Legend:") }}</strong>
122 <i class="icon-magnet"></i> {{ _("Magnet link") }},
123 <i class="icon-download-alt"></i> {{ _("Torrent download") }}
124 </p>
60024cc8
MT
125 </div>
126 {% end %}
127 </div>
128 </div>
940227cb 129{% else %}
60024cc8
MT
130 <div class="alert">
131 {{ _("There are no downloads available for this release.") }}
132 </div>
940227cb 133{% end %}