<h1 class="title">
Thank You For Choosing IPFire<span class="has-text-primary">_</span>
</h1>
- <h4 class="subtitle">{{ _("Your download will begin shortly.") }}</h4>
+ <h4 class="subtitle">{{ _("Your download will begin shortly") }}</h4>
<div class="block">
- <p class="download-path"></p>
+ <a href="{{ file.url }}">{{ file.url }}</a>
+ </div>
+
+ <div class="block">
+ <p>
+ {{ _("After download, please verify the file has the following %s checksum:") % ("SHA-256" if file.sha256 else "SHA-1") }}
+ <span class="is-family-monospace">{{ file.sha256 or file.sha1 }}</span>
+ </p>
</div>
</div>
</div>
{% block javascript %}
<script type="text/javascript">
- $("p.download-path").ready(function() {
- const params = new URLSearchParams(window.location.search);
-
- var file = params.get("file");
-
- // Avoid downloading files from other websites
- if (!file.startsWith("https://downloads.ipfire.org/"))
- return;
-
- $("p.download-path").prepend($("<a>", {
- href: encodeURI(file),
- text: file
- }));
-
- setTimeout(function() {
- window.location = file
- }, "2000");
- });
+ setTimeout(function() {
+ window.location = "{{ file.url }}"
+ }, "2000");
</script>
{% end %}