diff options
| author | Frederick Muriuki Muriithi | 2026-01-07 12:29:15 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-01-07 12:29:15 -0600 |
| commit | 227dfc8e8f68bf0f79a67feed46ce5dbce31b88e (patch) | |
| tree | c73e994a2cdfbdacfe81e8a8d7f04cd04b7a72d9 | |
| parent | 70430ef5a9a28d9acd13e738870964b5de9d9a6d (diff) | |
| download | gn-uploader-227dfc8e8f68bf0f79a67feed46ce5dbce31b88e.tar.gz | |
Separate elements for logged in and out states cleanly.
| -rw-r--r-- | uploader/templates/base.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/uploader/templates/base.html b/uploader/templates/base.html index 0f088b1..47c01c8 100644 --- a/uploader/templates/base.html +++ b/uploader/templates/base.html @@ -30,14 +30,21 @@ <header id="header"> <span id="header-text">GeneNetwork</span> <nav id="header-nav"> - <ul class="nav justify-content-end"> + <ul class="nav"> + {%if user_logged_in()%} <li> - {%if user_logged_in()%} <a href="{{url_for('oauth2.logout')}}" title="Log out of the system"> + <!-- https://icons.getbootstrap.com/icons/file-person/ --> + <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-file-person" viewBox="0 0 16 16"> + <path d="M12 1a1 1 0 0 1 1 1v10.755S12 11 8 11s-5 1.755-5 1.755V2a1 1 0 0 1 1-1zM4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/> + <path d="M8 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/> + </svg> <span class="glyphicon glyphicon-user"></span> Sign Out ({{user_email()}})</a> - {%else%} + </li> + {%else%} + <li> <a href="{{authserver_authorise_uri()}}" title="Log in to the system">Sign In</a> {%endif%} |
