]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/download/release.html
download: Re-add torrent links
[ipfire.org.git] / src / templates / download / release.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ release }}{% end block %}
4
5 {% block container %}
6 <section>
7 <div class="container">
8 <h6 class="mb-0">{{ _("Download") }}</h6>
9
10 <h1 class="mb-0">{{ release }}</h1>
11
12 <h6 class="mb-5">
13 {{ _("Released %s") % locale.format_date(release.published, relative=True, shorter=True) }}
14
15 {% if release.blog %}
16 &bull;
17 <a href="https://blog.ipfire.org/post/{{ release.blog.slug }}">{{ _("Release Notes") }}</a>
18 {% end %}
19 </h6>
20
21 {% for arch in release.primary_arches %}
22 <div class="my-5">
23 <h5>{{ arch }}</h5>
24
25 <ul class="list-group">
26 {% for file in release.get_files_by_arch(arch) %}
27 <li class="list-group-item">
28 <div class="d-flex w-100 justify-content-between">
29 <a href="{{ file.url }}">{{ _(file.desc) }}</a>
30
31 {% if file.size >= 1024 * 1024 %}
32 <span class="text-muted">{{ format_size(file.size) }}</span>
33 {% end %}
34 </div>
35
36 <ul class="list-inline text-muted small mb-0 d-none d-md-block">
37 <li class="list-inline-item">
38 {{ "%s: %s" % ("SHA256" if file.sha256 else "SHA1", file.sha256 or file.sha1) }}
39 </li>
40
41 {% if file.torrent_url %}
42 <li class="list-inline-item">
43 <a href="{{ file.torrent_url }}">
44 <i class="fas fa-download"></i> {{ _("Torrent Download") }}
45 </a>
46 </li>
47 {% end %}
48 </ul>
49 </li>
50 {% end %}
51 </ul>
52 </div>
53 {% end %}
54 </div>
55 </section>
56
57 <section class="inverse">
58 <div class="container">
59 <div class="row flex-md-row-reverse">
60 <div class="col-12 col-md-4 text-center text-md-right">
61 <span class="fas fa-cloud fa-10x my-5"></span>
62 </div>
63
64 <div class="col-12 col-md-8">
65 <h1>{{ _("Running IPFire in the Cloud?") }}</h1>
66
67 <p>
68 {{ _("IPFire is now available in the Amazon Cloud.") }}
69 {{ _("Create flexible firewall rules and use our Intrusion Detection System to protect your servers in the Cloud.") }}
70 {{ _("Connect to them securely using our VPN technologies.") }}
71 </p>
72
73 <a class="btn btn-lwl" href="https://aws.amazon.com/marketplace/pp/B07HYRD4FX">
74 {{ _("Go to Amazon Web Services") }} <span class="fas fa-external-link-alt ml-2"></span>
75 </a>
76 </div>
77 </div>
78 </div>
79 </section>
80
81 {% if release.secondary_arches %}
82 <section>
83 <div class="container">
84 <h3>{{ _("Secondary Architectures") }}</h3>
85
86 {% for arch in release.secondary_arches %}
87 <div class="my-5">
88 <h5>
89 {{ arch }}
90
91 {% if arch in release.experimental_arches %}
92 <span class="badge badge-success small">{{ _("Experimental") }}</span>
93 {% else %}
94 <span class="badge badge-warning small">{{ _("Legacy") }}</span>
95 {% end %}
96 </h5>
97
98 <ul class="list-group">
99 {% for file in release.get_files_by_arch(arch) %}
100 <li class="list-group-item">
101 <div class="d-flex w-100 justify-content-between">
102 <a href="{{ file.url }}">{{ _(file.desc) }}</a>
103
104 {% if file.size >= 1024 * 1024 %}
105 <span class="text-muted">{{ format_size(file.size) }}</span>
106 {% end %}
107 </div>
108
109 <ul class="list-inline text-muted small mb-0 d-none d-md-block">
110 <li class="list-inline-item">
111 {{ "%s: %s" % ("SHA256" if file.sha256 else "SHA1", file.sha256 or file.sha1) }}
112 </li>
113
114 {% if file.torrent_url %}
115 <li class="list-inline-item">
116 <a href="{{ file.torrent_url }}">
117 <i class="fas fa-download"></i> {{ _("Torrent Download") }}
118 </a>
119 </li>
120 {% end %}
121 </ul>
122 </li>
123 {% end %}
124 </ul>
125 </div>
126 {% end %}
127 </div>
128 </section>
129 {% end %}
130 {% end block %}