From: Michael Tremer Date: Wed, 18 Nov 2020 22:12:54 +0000 (+0000) Subject: downloads: Add thank you page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=baeec76538a48d8878623bdea9e4486c11ea5f70;p=ipfire.org.git downloads: Add thank you page Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index c611249d..5a91dd29 100644 --- a/Makefile.am +++ b/Makefile.am @@ -192,7 +192,8 @@ templates_donate_messages_DATA = \ templates_donate_messagesdir = $(templates_donatedir)/messages templates_download_DATA = \ - src/templates/download/release.html + src/templates/download/release.html \ + src/templates/download/thank-you.html templates_downloaddir = $(templatesdir)/download diff --git a/src/templates/download/thank-you.html b/src/templates/download/thank-you.html new file mode 100644 index 00000000..1a62faf0 --- /dev/null +++ b/src/templates/download/thank-you.html @@ -0,0 +1,46 @@ +{% extends "../base.html" %} + +{% block title %}{{ _("Thank You For Downloading IPFire") }}{% end block %} + +{% block container %} +
+
+

{{ _("Thank You For Downloading IPFire") }}

+ +

+ {{ _("Your download will begin in a few seconds. If not, click the link below.") }} +

+ +

+
+
+ +
+
+ XXX +
+
+{% end block %} + +{% block javascript %} + +{% end %} diff --git a/src/web/__init__.py b/src/web/__init__.py index 0f9c3d6a..03749683 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -135,6 +135,7 @@ class Application(tornado.web.Application): # Download sites (r"/downloads", tornado.web.RedirectHandler, { "url" : "/download" }), (r"/download", download.IndexHandler), + (r"/download/thank-you", download.ThankYouHandler), (r"/download/([0-9a-z\-\.]+)", download.ReleaseHandler), # Donate diff --git a/src/web/download.py b/src/web/download.py index 6827d132..3f58579a 100644 --- a/src/web/download.py +++ b/src/web/download.py @@ -35,6 +35,11 @@ class ReleaseRedirectHandler(base.BaseHandler): self.redirect("https://www.ipfire.org/download/%s" % release, permanent=True) +class ThankYouHandler(base.BaseHandler): + def get(self): + self.render("download/thank-you.html") + + class FileHandler(base.BaseHandler): def prepare(self): self.set_header("Pragma", "no-cache")