From 8ffd45e615f36f16920484674f3e3fd0b3e8ef4e Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Wed, 5 Mar 2025 11:31:06 +0100 Subject: [PATCH] Minor UI improvements (clickable logo and user in header). --- .../webapp/code/rosetta/core_app/templates/logo.html | 2 ++ .../code/rosetta/core_app/templates/navigation.html | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/services/webapp/code/rosetta/core_app/templates/logo.html b/services/webapp/code/rosetta/core_app/templates/logo.html index e58126b..32a574c 100644 --- a/services/webapp/code/rosetta/core_app/templates/logo.html +++ b/services/webapp/code/rosetta/core_app/templates/logo.html @@ -1,5 +1,7 @@ <div style="background:#f8f8f8; margin:0px; padding-top:8px; padding-bottom:0px; border-bottom:lightgray 1px solid; margin-bottom:20px"> <!-- <img src="/static/img/logo.png" style="height:35px; margin-left:10px; margin-top:10px; margin-bottom:10px; margin-right:20px;"> --> +<a href="/" style="text-decoration: none; color: inherit"> <span style="margin-left:15px;font-size:1.8em"><b>Rosetta</b></span> <img src="/static/img/emoji_u1f6f0.png" style="height:42px; padding-bottom:20px"> +</a> </div> diff --git a/services/webapp/code/rosetta/core_app/templates/navigation.html b/services/webapp/code/rosetta/core_app/templates/navigation.html index 25ab05e..5dddc77 100644 --- a/services/webapp/code/rosetta/core_app/templates/navigation.html +++ b/services/webapp/code/rosetta/core_app/templates/navigation.html @@ -1,4 +1,14 @@ {% if not data.dedicated or data.user.is_authenticated %} + + {% if user.is_authenticated %} + <div style="position: absolute; top: 18px; right: 80px; z-index: 2;"> + <font> + <i class="fa fa-user"></i> + {{ user.email }} + </font> + </div> + {% endif %} + <!-- Navigation --> <a id="menu-toggle" href="#" class="btn btn-light btn-lg toggle" style="border:1px solid #c0c0c0"><i class="fa fa-bars" ></i></a> <nav id="sidebar-wrapper"> -- GitLab