From: Rico Hoppe Date: Sun, 3 Mar 2024 10:48:29 +0000 (+0000) Subject: location: removed /projects from the path, updated all links X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=981046b67d73772a3bd2185aefaf73a3247c78bb;p=ipfire.org.git location: removed /projects from the path, updated all links Signed-off-by: Rico Hoppe --- diff --git a/src/templates/base.html b/src/templates/base.html index 85eafc55..ae4d64b8 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -26,7 +26,7 @@
- + {{ _("How To Use") }} diff --git a/src/templates/location/lookup.html b/src/templates/location/lookup.html index 27d64b94..41830a53 100644 --- a/src/templates/location/lookup.html +++ b/src/templates/location/lookup.html @@ -14,12 +14,7 @@
  • - - {{ _("Projects") }} - -
  • -
  • - + {{ _("Location") }}
  • diff --git a/src/templates/static/sitemap.html b/src/templates/static/sitemap.html index a34e1da0..aced3256 100644 --- a/src/templates/static/sitemap.html +++ b/src/templates/static/sitemap.html @@ -13,7 +13,7 @@

    Geo Location Database

    - + {{ _("IPFire Location") }}

    diff --git a/src/web/__init__.py b/src/web/__init__.py index 52aab699..f34098fc 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -184,10 +184,10 @@ class Application(tornado.web.Application): (r"/.well-known/change-password", auth.WellKnownChangePasswordHandler), # Projects - (r"/projects/location/?", location.IndexHandler), - (r"/projects/location/download", StaticHandler, { "template" : "location/download.html" }), - (r"/projects/location/how\-to\-use", StaticHandler, { "template" : "location/how-to-use.html" }), - (r"/projects/location/lookup/(.+)", location.LookupHandler), + (r"/location/?", location.IndexHandler), + (r"/location/download", StaticHandler, { "template" : "location/download.html" }), + (r"/location/how\-to\-use", StaticHandler, { "template" : "location/how-to-use.html" }), + (r"/location/lookup/(.+)", location.LookupHandler), # Single-Sign-On for Discourse (r"/sso/discourse", auth.SSODiscourse),