From 2c39be74134ac7e754e87bbd3272c68dcfa7f21e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 10 Oct 2023 17:29:43 +0000 Subject: [PATCH] base: Dynamically change nagivation on location stuff Signed-off-by: Michael Tremer --- src/templates/base.html | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/src/templates/base.html b/src/templates/base.html index 2580a096..b510c919 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -26,14 +26,16 @@ {% end %} - {{ _("About") }} + {# Location #} + {% if request.path.startswith("/projects/location") %} + + {{ _("How To Use") }} + + + + {{ _("Download") }} + - {{ _("Documentation") }} + {# Main #} + {% else %} + {{ _("About") }} - {{ _("Download") }} + {{ _("Documentation") }} - {{ _("Blog") }} + {{ _("Download") }} - {{ _("Help") }} + {{ _("Blog") }} + + {{ _("Help") }} + {% end %}