]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/download/release.html
download: Add dynamic redirect to thank you page
[ipfire.org.git] / src / templates / download / release.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ release }}{% end block %}
4
5 {% block container %}
6 <div class="header">
7 <div class="container">
8 <h1>{{ _("Download") }}</h1>
9
10 <p class="text-muted">
11 IPFire is free to download for everyone... XXX
12 </p>
13 </div>
14 </div>
15
16 <div class="container">
17 <section>
18 <h2>{{ release }}</h2>
19
20 <p class="text-muted">
21 {{ _("Released %s") % locale.format_date(release.published, relative=True, shorter=True) }}
22
23 {% if release.blog %}
24 &bull;
25 <a href="/blog/{{ release.blog.slug }}">{{ _("Release Notes") }}</a>
26 {% end %}
27 </p>
28
29 <div class="list-group">
30 {% for i, arch in enumerate(release.arches) %}
31 <div class="list-group-item bg-dark text-white d-flex align-items-start justify-content-between">
32 <h6 class="mb-0">{{ arch }}</h6>
33
34 {% if arch in release.experimental_arches %}
35 <span class="badge badge-success">{{ _("Experimental") }}</span>
36 {% elif arch in release.secondary_arches %}
37 <span class="badge badge-warning">{{ _("Legacy") }}</span>
38 {% end %}
39 </div>
40
41 {% for file in release.get_files_by_arch(arch) %}
42 <a class="list-group-item list-group-item-action download-splash" href="{{ file.url }}">
43 <h6>
44 {{ _(file.desc) }} <i class="fas fa-download text-primary"></i>
45 </h6>
46
47 <ul class="list-inline text-muted small mb-0">
48 <li class="list-inline-item">
49 {{ format_size(file.size) }}
50 </li>
51
52 <li class="list-inline-item">
53 {{ "%s: %s" % ("SHA256" if file.sha256 else "SHA1", file.sha256 or file.sha1) }}
54 </li>
55 </ul>
56 </a>
57 {% end %}
58 {% end %}
59 </div>
60 </section>
61 </div>
62
63 <section class="inverse">
64 <div class="container">
65 <div class="row flex-md-row-reverse">
66 <div class="col-12 col-md-4 text-center text-md-right">
67 <span class="fas fa-cloud fa-10x my-5"></span>
68 </div>
69
70 <div class="col-12 col-md-8">
71 <h1>{{ _("Running IPFire in the Cloud?") }}</h1>
72
73 <p>
74 {{ _("IPFire is now available in the Amazon Cloud.") }}
75 {{ _("Create flexible firewall rules and use our Intrusion Detection System to protect your servers in the Cloud.") }}
76 {{ _("Connect to them securely using our VPN technologies.") }}
77 </p>
78
79 <a class="btn btn-lwl" href="https://aws.amazon.com/marketplace/pp/B07HYRD4FX">
80 {{ _("Go to Amazon Web Services") }} <span class="fas fa-external-link-alt ml-2"></span>
81 </a>
82 </div>
83 </div>
84 </div>
85 </section>
86 {% end block %}
87
88 {% block javascript %}
89 <script type="text/javascript">
90 $("a.download-splash").click(function(e) {
91 e.preventDefault();
92
93 window.location = "/download/thank-you?file=" + this.href;
94 });
95 </script>
96 {% end %}