From: Michael Tremer Date: Sat, 1 Sep 2018 12:06:12 +0000 (+0100) Subject: Remove download splash X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f3ab5805896060775f282c84842dba0dfc0277b;p=ipfire.org.git Remove download splash I have no good content for that and for now this being removed. Signed-off-by: Michael Tremer --- diff --git a/src/static/js/site.js b/src/static/js/site.js index 95a150c7..25d08dc5 100644 --- a/src/static/js/site.js +++ b/src/static/js/site.js @@ -20,40 +20,6 @@ $.query = function(name){ return results[1] || 0; } -$("a.download-splash").click(function(event) { - event.preventDefault(); - linkLocation = this.href; - - window.location = "https://downloads.ipfire.org/download-splash?file="+linkLocation; -}); - -if (/.*download-splash.*/i.test(window.location.href)) { - $("p.download-path").ready(function(){ - var valid = false; - var allowed_prefixes = [ - "https://downloads.ipfire.org/", - ] - - var file_url = $.query("file"); - - // Only accept URLs beginning with our known prefix. - for (i in allowed_prefixes) { - prefix = allowed_prefixes[i]; - if (file_url.substring(0, prefix.length) == prefix) { - valid = true; - } - } - - if (valid) { - $("p.download-path").prepend($("", { - href: encodeURI(file_url), - text: file_url - })) - setTimeout(function() { window.location = file_url }, "2000"); - } - }); -} - /* $(".planet-search-autocomplete").typeahead({ source: function(query, process) { $.get("/api/planet/search/autocomplete", { q: query }, function(data) { diff --git a/src/templates/download/modules/button.html b/src/templates/download/modules/button.html index d8b190d8..66990d2d 100644 --- a/src/templates/download/modules/button.html +++ b/src/templates/download/modules/button.html @@ -1,3 +1,3 @@ - + {{ _("%s for %s") % (release, file.arch) }} diff --git a/src/templates/download/release.html b/src/templates/download/release.html index 02130e31..b45302a6 100644 --- a/src/templates/download/release.html +++ b/src/templates/download/release.html @@ -26,7 +26,7 @@ {% for file in release.get_files_by_arch(arch) %}
  • - {{ _(file.desc) }} + {{ _(file.desc) }} {% if file.size >= 1024 * 1024 %} {{ format_size(file.size) }}