]> git.ipfire.org Git - ipfire.org.git/commitdiff
downloads: Show checksums when hovering over a link
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 Dec 2023 13:41:14 +0000 (13:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 Dec 2023 13:41:14 +0000 (13:41 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/downloads/release.html

index a3f8e7909940b58b1afd7e633048fba2dbd1d2a5..0673391489ebb8f4e7b4b6a52d16d92796dc4ed0 100644 (file)
@@ -34,7 +34,8 @@
                                                                <ul>
                                                                        {% for file in release.get_files_by_arch(arch) %}
                                                                                <li>
-                                                                                       <a class="download-splash" href="{{ file.url }}">
+                                                                                       <a class="download-splash" href="{{ file.url }}"
+                                                                                                       title="{{ "%s: %s" % ("SHA256" if file.sha256 else "SHA1", file.sha256 or file.sha1) }}">
                                                                                                <span class="icon-text">
                                                                                                        <span class="icon">
                                                                                                                <i class="fas fa-download"></i>