summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-12-18 13:47:05 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-18 13:49:05 +0100
commit67cca9872a7d8ade5b67b6649171e6e275bc5c87 (patch)
treed23daa4045c94f35e3c0a6192a73e1ce1edf1cf7 /ogcp/templates
parent869f15ecf05b2d8d1ee6f34227764bb829d176b1 (diff)
templates: Show username in top navbarv1.1.3-9
Show the username of the user currently logged-in in the top navbar.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/base.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 8906fd9..73138b9 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -54,6 +54,11 @@
{% if current_user.is_authenticated %}
<li class="nav-item">
+ <span class="navbar-text">
+ {{ current_user.id }}
+ </span>
+ </li>
+ <li class="nav-item">
<a class="btn btn-danger" href="{{ url_for('logout') }}">{{ _('Logout') }}</a>
</li>