]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/downloads/thank-you.html
wiki: Only match usernames when a word starts with @
[ipfire.org.git] / src / templates / downloads / thank-you.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Thank You For Downloading IPFire") }}{% end block %}
4
5 {% block container %}
6 <section class="hero is-medium">
7 <div class="hero-body">
8 <div class="container">
9 <h1 class="title">
10 Thank You For Choosing IPFire<span class="has-text-primary">_</span>
11 </h1>
12 <h4 class="subtitle">{{ _("Your download will begin shortly.") }}</h4>
13
14 <div class="block">
15 <p class="download-path"></p>
16 </div>
17 </div>
18 </div>
19 </section>
20
21 <section class="section">
22 <div class="container">
23 <div class="block">
24 <p class="is-size-5">
25 {{ _("In the meantime, explore our documentation and community forums for helpful resources.") }}
26 </p>
27
28 <p class="is-size-5">
29 {{ _("Need professional support? Check out Lightning Wire Labs for expert assistance.") }}
30 {{ _("Welcome to the secure world of IPFire!") }}
31 </p>
32 </div>
33
34 <div class="buttons are-medium">
35 <a class="button is-dark is-fullwidth" href="/docs/installation">
36 {{ _("Read The Installation Guide") }}
37 </a>
38
39 <a class="button is-primary is-fullwidth" href="/donate">
40 {{ _("Donate To Support The Project") }}
41 </a>
42
43 <a class="button is-lwl is-fullwidth" href="https://store.lightningwirelabs.com/products/groups/support">
44 {{ _("Check Out Our Support Plans") }}
45 </a>
46 </div>
47 </div>
48 </section>
49 {% end block %}
50
51 {% block javascript %}
52 <script type="text/javascript">
53 $("p.download-path").ready(function() {
54 const params = new URLSearchParams(window.location.search);
55
56 var file = params.get("file");
57
58 // Avoid downloading files from other websites
59 if (!file.startsWith("https://downloads.ipfire.org/"))
60 return;
61
62 $("p.download-path").prepend($("<a>", {
63 href: encodeURI(file),
64 text: file
65 }));
66
67 setTimeout(function() {
68 window.location = file
69 }, "2000");
70 });
71 </script>
72 {% end %}