]> git.ipfire.org Git - ipfire.org.git/commitdiff
Show note about login status in footer
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:52:38 +0000 (13:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:52:38 +0000 (13:52 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html

index 1bb17283708d4e352eadc80943509a905ef58f48..cf6c7c62115a4b671f8c55b3396efe821fe6edf0 100644 (file)
                                                &copy; {{ year }} - {{ _("IPFire is free software written by the IPFire Project") }}
 
                                                {% if not current_user and hostname in ("blog.ipfire.org") %}
-                                                       <a href="/login">Login</a>
+                                                       <a href="/login">{{ _("Login") }}</a>
+                                               {% elif current_user %}
+                                                       <span>
+                                                               {{ _("You are currently logged in as %s") % current_user.name }}
+                                                               <a href="/logout">{{ _("Logout") }}</a>
+                                                       </span>
                                                {% end %}
                                        </div>
                                </div>