]> git.ipfire.org Git - ipfire.org.git/commitdiff
base.hmtl: changed "active" attribute to "is-active"
authorRico Hoppe <rico.hoppe@ipfire.org>
Mon, 26 Jun 2023 15:44:17 +0000 (15:44 +0000)
committerRico Hoppe <rico.hoppe@ipfire.org>
Mon, 26 Jun 2023 15:44:17 +0000 (15:44 +0000)
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/base.html

index ed920ae53c9ba8755a94e82de200e33558a45e19..2aaf7dc884720a77aa489fb57e85e62c7f2881ee 100644 (file)
                                        {% block menu %}
                                                {% if hostname.startswith("www.") or hostname.startswith("dev.") %}
                                                        <div class="navbar-end">
-                                                               <a class="navbar-item {% if request.path == "/about" %}active{% end %}" href="/about">{{ _("About") }}</a>
+                                                               <a class="navbar-item {% if request.path == "/about" %}is-active{% end %}" href="/about">{{ _("About") }}</a>
 
-                                                               <a class="navbar-item {% if request.path.startswith("/download") %}active{% end %}" href="/download">{{ _("Download") }}</a>
+                                                               <a class="navbar-item {% if request.path.startswith("/download") %}is-active{% end %}" href="/download">{{ _("Download") }}</a>
 
-                                                               <a class="navbar-item {% if request.path.startswith("/blog") %}active{% end %}" href="/blog">{{ _("Blog") }}</a>
+                                                               <a class="navbar-item {% if request.path.startswith("/blog") %}is-active{% end %}" href="/blog">{{ _("Blog") }}</a>
 
-                                                               <a class="navbar-item {% if request.path == "/help" %}active{% end %}" href="/help">{{ _("Help") }}</a>
+                                                               <a class="navbar-item {% if request.path == "/help" %}is-active{% end %}" href="/help">{{ _("Help") }}</a>
 
                                                                <div class="navbar-item">
                                                                        <a class="button is-lwl has-text-weight-bold is-uppercase"
                                                                <ul class="navbar-nav ml-auto">
                                                                        {% if current_user and current_user.is_staff() %}
                                                                                <li class="nav-item">
-                                                                                       <a class="nav-link {% if request.path.startswith("/admin") %}active{% end %}" href="/admin">
+                                                                                       <a class="nav-link {% if request.path.startswith("/admin") %}is-active{% end %}" href="/admin">
                                                                                                {{ _("Admin") }}
                                                                                        </a>
                                                                                </li>
                                                                        {% end %}
 
                                                                        <li class="nav-item">
-                                                                               <a class="nav-link {% if request.path.startswith("/vendors") %}active{% end %}" href="/vendors">
+                                                                               <a class="nav-link {% if request.path.startswith("/vendors") %}is-active{% end %}" href="/vendors">
                                                                                        {{ _("Vendors") }}
                                                                                </a>
                                                                        </li>
                                                        <div class="collapse navbar-collapse" id="navbar">
                                                                <ul class="navbar-nav ml-auto">
                                                                        <li class="nav-item">
-                                                                               <a class="nav-link {% if request.path == "/how-to-use" %}active{% end %}" href="/how-to-use">
+                                                                               <a class="nav-link {% if request.path == "/how-to-use" %}is-active{% end %}" href="/how-to-use">
                                                                                        {{ _("How To Use") }}
                                                                                </a>
                                                                        </li>
 
                                                                        <li class="nav-item">
-                                                                               <a class="nav-link {% if request.path == "/download" %}active{% end %}" href="/download">
+                                                                               <a class="nav-link {% if request.path == "/download" %}is-active{% end %}" href="/download">
                                                                                        {{ _("Download") }}
                                                                                </a>
                                                                        </li>