2016-12-18 13:12:14 +00:00
|
|
|
{% 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>
|
2018-01-16 02:41:21 +00:00
|
|
|
{% if session.user %}
|
2018-04-15 21:23:24 +00:00
|
|
|
<a class="header_element" href="/user/{{session.user.username}}">{{session.user.display_name}}</a>
|
2016-12-18 13:12:14 +00:00
|
|
|
<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>
|
2018-04-15 21:23:24 +00:00
|
|
|
{% endmacro %}
|