diff options
author | Frederick Muriuki Muriithi | 2024-07-29 13:19:03 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-05 09:52:17 -0500 |
commit | 889ff3116c8e412bb8bf969bd9484269ee716cb0 (patch) | |
tree | dd16324b7bc6b135dc60bfb17ecdcefeeb713bb3 /uploader/templates/base.html | |
parent | 92d0d0c387fd9d41c8371fcef7d3bd5beacdc2ac (diff) | |
download | gn-uploader-889ff3116c8e412bb8bf969bd9484269ee716cb0.tar.gz |
Enable logout.
Diffstat (limited to 'uploader/templates/base.html')
-rw-r--r-- | uploader/templates/base.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/uploader/templates/base.html b/uploader/templates/base.html index eb5e6b7..ee60fea 100644 --- a/uploader/templates/base.html +++ b/uploader/templates/base.html @@ -33,7 +33,18 @@ <ul class="nav navbar-nav"> <li><a href="/" style="font-weight: bold">GN Uploader</a></li> <li> - <a href="{{gnuri or 'https://genenetwork.org'}}">GeneNetwork</a> + <a href="{{gn2server_uri()}}">GeneNetwork</a> + </li> + </ul> + <ul class="nav navbar-nav" style="margin-left: 2em;"> + <li> + {%if user_logged_in()%} + <a href="{{url_for('oauth2.logout')}}" + title="Log out of the system">Log Out</a> + {%else%} + <a href="{{authserver_authorise_uri()}}" + title="Log in to the system">Log In</a> + {%endif%} </li> </ul> </div> |