etiquette/frontends/etiquette_flask/templates/header.html

14 lines
611 B
HTML
Raw Normal View History

{% macro make_header(session) %}
<nav id="header">
2016-09-18 08:33:46 +00:00
<a class="header_element" href="/">Etiquette</a>
<a class="header_element" href="/search">Search</a>
<a class="header_element" href="/tags">Tags</a>
{% if session.user %}
<a class="header_element dynamic_user_display_name" href="/user/{{session.user.username}}">{{session.user.display_name}}</a>
<button id="logout_button" class="header_element" onclick="return api.users.logout(common.refresh);" style="flex:0">Logout</button>
{% else %}
<a class="header_element" href="/login">Log in</a>
{% endif %}
</nav>
2018-04-15 21:23:24 +00:00
{% endmacro %}