From: Michael Tremer Date: Sun, 31 Mar 2024 18:22:43 +0000 (+0000) Subject: location: Rename Download to Install X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af3577fdec1f83290087cb5e6a301d073c3eb28;p=ipfire.org.git location: Rename Download to Install Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index c29a13eb..920b3efb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -262,9 +262,9 @@ templates_fireinfo_modules_DATA = \ templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules templates_location_DATA = \ - src/templates/location/download.html \ src/templates/location/how-to-use.html \ src/templates/location/index.html \ + src/templates/location/install.html \ src/templates/location/lookup.html templates_locationdir = $(templatesdir)/location diff --git a/src/templates/base.html b/src/templates/base.html index 09061b4d..28cd6c90 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -98,9 +98,9 @@ - {{ _("Download") }} + {% if request.path == "/location/install" %}is-active{% end %}" + href="/location/install"> + {{ _("Install") }} {# Main #} diff --git a/src/templates/location/download.html b/src/templates/location/install.html similarity index 87% rename from src/templates/location/download.html rename to src/templates/location/install.html index d5c52737..53241795 100644 --- a/src/templates/location/download.html +++ b/src/templates/location/install.html @@ -1,6 +1,6 @@ {% extends "../base.html" %} -{% block title %}{{ _("Download") }}{% end block %} +{% block title %}{{ _("Install IPFire Location") }}{% end block %} {% block container %}
@@ -19,12 +19,12 @@
  • - {{ _("Download") }} + {{ _("Install") }}
  • -

    {{ _("Download IPFire Location") }}

    +

    {{ _("Install IPFire Location") }}

    Learn how to download and install libloc
    diff --git a/src/web/__init__.py b/src/web/__init__.py index 01a764aa..80bf199e 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -196,8 +196,9 @@ class Application(tornado.web.Application): # Location (r"/location/?", location.IndexHandler), - (r"/location/download", StaticHandler, { "template" : "location/download.html" }), + (r"/location/download", tornado.web.RedirectHandler, { "url" : "/location/install" }), (r"/location/how\-to\-use", StaticHandler, { "template" : "location/how-to-use.html" }), + (r"/location/install", StaticHandler, { "template" : "location/install.html" }), (r"/location/lookup/(.+)", location.LookupHandler), # Single-Sign-On for Discourse