etiquette/templates/header.html

13 lines
510 B
HTML
Raw Normal View History

{% macro make_header(session) %}
2016-09-18 08:33:46 +00:00
<div id="header">
<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 %}
<a class="header_element" href="/user/{{session.user.username}}">{{session.user.username}}</a>
<a class="header_element" href="/logout" style="flex:0">Logout</a>
{% else %}
<a class="header_element" href="/login">Log in</a>
{% endif %}
2016-09-18 08:33:46 +00:00
</div>
{% endmacro %}