Skip to content
Snippets Groups Projects
Commit 02cecf87 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

templates/_base: Add logout button to nav bar

parent 38a610fb
No related branches found
No related tags found
1 merge request!5Auth
...@@ -135,6 +135,13 @@ nav { ...@@ -135,6 +135,13 @@ nav {
#nav-links { #nav-links {
padding: 0; padding: 0;
flex-grow: 1;
}
#logout {
@media screen and (min-width: @mobile_threshold) {
margin-left: auto;
}
} }
@media screen and (max-width: @mobile_threshold) { @media screen and (max-width: @mobile_threshold) {
......
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
<div id="nav-links"> <div id="nav-links">
<a {{ maybe_active_href("views.index") }}>Startseite</a> <a {{ maybe_active_href("views.index") }}>Startseite</a>
<a {{ maybe_active_href("views.create") }}>Neues Schild</a> <a {{ maybe_active_href("views.create") }}>Neues Schild</a>
{%- if "identity" in session -%}
<a href="{{ url_for('views.logout') }}" id="logout">Abmelden</a>
{%- endif -%}
</div> </div>
</nav> </nav>
{%- endblock nav -%} {%- endblock nav -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment