]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/templates/master.html
Implement authentification but don't enforce it yet.
[philipp/winterrodeln/wradmin.git] / wradmin / templates / master.html
index a64cd9e4b4bcae9b413e156dc2372abc1f10aa8b..76e7fc5b642ca8dee6bafa8baf1361b996f77b39 100644 (file)
     <li><a href="{{url_for('rodelbahn_list')}}">Rodelbahnen</a></li>
     <li><a href="{{url_for('bericht_list')}}">Rodelbahnberichte</a></li>
     <li><a href="{{url_for('gasthaus_list')}}">Gasthäuser</a></li>
+    {% if current_user.is_authenticated %}
+    <li><a href="{{url_for('logout')}}">Logout</a></li>
+    {% else %}
+    <li><a href="{{url_for('login')}}">Login</a></li>
+    {% endif %}
 </ul>
 
 {% with messages = get_flashed_messages() %}