aboutsummaryrefslogtreecommitdiff
path: root/app/templates/base.html
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-18 14:42:23 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-18 14:42:23 +0000
commitca0586953fa0da443ab54eb960bf90a8fbdeed7d (patch)
treed85e112174f050a2271d39060dbfe640fd10722a /app/templates/base.html
parentinitial commit (diff)
downloadAnnotateChange-ca0586953fa0da443ab54eb960bf90a8fbdeed7d.tar.gz
AnnotateChange-ca0586953fa0da443ab54eb960bf90a8fbdeed7d.zip
add registration
Diffstat (limited to 'app/templates/base.html')
-rw-r--r--app/templates/base.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index c40482d..3070587 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -9,7 +9,11 @@
<body>
<div>Annotate Change:
<a href="{{ url_for('index') }}">Home</a>
+ {% if current_user.is_anonymous %}
<a href="{{ url_for('login') }}">Login</a>
+ {% else %}
+ <a href="{{ url_for('logout') }}">Logout</a>
+ {% endif %}
</div>
<hr>
{% with messages = get_flashed_messages() %}