]> git.ipfire.org Git - pbs.git/commitdiff
web: Replace the Sign In button with an icon
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Feb 2025 17:24:15 +0000 (17:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Feb 2025 17:24:15 +0000 (17:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index 0407c8bf396b254b32535682fd36762dd34bdb98..81167e6977c97c31cd47c93d566bce63bd4e0109 100644 (file)
                                                                        <hr class="navbar-divider">
 
                                                                        <a class="navbar-item" href="/logout">
-                                                                               {{ _("Logout") }}
+                                                                               {{ _("Log Out") }}
                                                                        </a>
                                                                </div>
                                                        </div>
                                                {% else %}
-                                                       <div class="navbar-item">
-                                                               <a class="button" href="/login">
-                                                                       {{ _("Sign In") }}
-                                                               </a>
-                                                       </div>
+                                                       <a class="navbar-item is-tab {% if request.path == "/login" %}is-active{% endif %}"
+                                                                       href="/login?next={{ request.path }}">
+                                                               <i class="fas fa-right-to-bracket" title="{{ _("Log In") }}"></i>
+                                                       </a>
                                                {% endif %}
                                        </div>
                                </div>