]> git.ipfire.org Git - ipfire.org.git/commitdiff
base: updated to new fireinfo nav path
authorRico Hoppe <rico.hoppe@ipfire.org>
Sun, 3 Mar 2024 11:23:16 +0000 (11:23 +0000)
committerRico Hoppe <rico.hoppe@ipfire.org>
Sun, 3 Mar 2024 11:23:16 +0000 (11:23 +0000)
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/base.html

index dd1ad8a6d6c0d81d2ba5d1d2327362a7062798f1..09061b4d1243d0f153cde00b94a21ac4b882a19e 100644 (file)
@@ -28,7 +28,7 @@
                                                <strong>
                                                        {% if request.path.startswith("/location") %}
                                                                {% module IPFireLogo("Location") %}
-                                                       {% elif hostname.startswith("fireinfo.") %}
+                                                       {% elif request.path.startswith("/fireinfo") %}
                                                                {% module IPFireLogo("Fireinfo") %}
                                                        {% elif hostname.startswith("nopaste.") %}
                                                                {% module IPFireLogo("NoPaste") %}
                                                                {% end %}
 
                                                                {# Location #}
-                                                               {% if request.path.startswith("/projects/location") %}
+                                                               {% if request.path.startswith("/location") %}
                                                                        <a class="navbar-item is-tab
-                                                                                       {% if request.path == "/projects/location/how-to-use" %}is-active{% end %}"
-                                                                                       href="/projects/location/how-to-use">
+                                                                                       {% if request.path == "/location/how-to-use" %}is-active{% end %}"
+                                                                                       href="/location/how-to-use">
                                                                                {{ _("How To Use") }}
                                                                        </a>
 
                                                                        <a class="navbar-item is-tab
-                                                                                       {% if request.path.startswith("/projects/location/download") %}is-active{% end %}"
-                                                                                       href="/projects/location/download">
+                                                                                       {% if request.path.startswith("/location/download") %}is-active{% end %}"
+                                                                                       href="/location/download">
                                                                                {{ _("Download") }}
                                                                        </a>
 
                                                                        </a>
                                                                {% end %}
                                                        </div>
-                                               {% elif hostname.startswith("fireinfo.") %}
+                                               {% elif request.path.startswith("/fireinfo") %}
                                                        <div class="navbar-end">
                                                                {% if current_user and current_user.is_staff() %}
                                                                        <a class="navbar-item is-tab {% if request.path.startswith("/admin") %}is-active{% end %}" href="/admin">