From c3bcd7d41f87445c92858596968608b73f91f7d1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 17 Oct 2019 16:03:19 +0100 Subject: [PATCH] location: Add an index page that presents the project Signed-off-by: Michael Tremer --- Makefile.am | 1 + src/templates/base.html | 22 +++++ src/templates/location/index.html | 137 ++++++++++++++++++++++++++++++ src/web/location.py | 2 +- 4 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 src/templates/location/index.html diff --git a/Makefile.am b/Makefile.am index d51e3c6b..a50e5847 100644 --- a/Makefile.am +++ b/Makefile.am @@ -181,6 +181,7 @@ templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules templates_location_DATA = \ src/templates/location/base.html \ src/templates/location/blacklists.html \ + src/templates/location/index.html \ src/templates/location/lookup.html templates_locationdir = $(templatesdir)/location diff --git a/src/templates/base.html b/src/templates/base.html index dfebe328..568b8b7f 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -30,6 +30,9 @@ {{ _("Blog") }} {% elif hostname == "fireinfo.ipfire.org" %} {{ _("Fireinfo") }} + {% elif hostname == "location.ipfire.org" %} + {{ _("Location") }} + {{ _("BETA") }} {% elif hostname == "mirrors.ipfire.org" %} {{ _("Mirrors") }} {% elif hostname == "people.ipfire.org" %} @@ -142,6 +145,25 @@ + {% elif hostname == "location.ipfire.org" %} + + + {% elif hostname == "nopaste.ipfire.org" %}