diff options
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> |