]> git.ipfire.org Git - ipfire.org.git/commitdiff
base: Add a simple option to go back to IPFire.org
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Feb 2026 16:54:21 +0000 (16:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Feb 2026 16:54:21 +0000 (16:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index 4a5515b6937320ee0339719bc13d4b9e204ade89..c18c0b9624785d7f59b346d8e04559cea9ee87c5 100644 (file)
                {% block head %}{% end block %}
        </head>
 
+       {% set is_subproject = False %}
+
+       {# IPFire DBL is a subproject #}
+       {% if request.path.startswith("/dbl") %}
+               {% set is_subproject = True %}
+
+       {# IPFire Location is a subproject #}
+       {% elif request.path.startswith("/location") %}
+               {% set is_subproject = True %}
+       {% end %}
+
        <body class="is-flex is-flex-direction-column">
                <nav class="navbar {% if request.path.startswith("/dbl") %}is-dark{% end %}"
                                role="navigation" aria-label="main navigation">
                                                                {% end %}
 
                                                                {# Buy #}
-                                                               {% if not request.path.startswith("/dbl") %}
+                                                               {% if not is_subproject %}
                                                                        <div class="navbar-item">
                                                                                <a class="button is-lwl has-text-weight-bold is-uppercase"
                                                                                                href="https://store.lightningwirelabs.com/?utm_source={{ hostname }}&amp;utm_medium=navigation">
                                                                        </a>
                                                                </div>
 
+                                                               {# Back to IPFire.org #}
+                                                               {% if is_subproject %}
+                                                                       <a class="navbar-item is-tab" href="https://www.ipfire.org/" title="{{ _("Back to IPFire.org") }}">
+                                                                               <span class="icon">
+                                                                                       <i class="fa-solid fa-house"></i>
+                                                                               </span>
+                                                                       </a>
+                                                               {% end %}
+
                                                                {% if current_user %}
                                                                        <div class="navbar-item has-dropdown is-hoverable">
                                                                                <a class="navbar-link is-arrowless" href="/users/{{ current_user.uid }}">