19 lines
704 B
HTML
19 lines
704 B
HTML
|
<a href="{{ url_for('home') }}">{{ _("Home") }}</a> |
|
||
|
[%- for nav in navigation_items %]
|
||
|
[%- if nav._verbs.list.is_login_required %]
|
||
|
{% if current_user.is_authenticated %}
|
||
|
[%- endif %]
|
||
|
<a href="{{ url_for('list_[[ nav.name|camel_to_snake ]]') }}">{{ _("[[ nav.name ]]") }}</a>[%- if not loop.last %]|[%- endif %]
|
||
|
[%- if nav._verbs.list.is_login_required %]
|
||
|
{% endif %}
|
||
|
[%- endif %]
|
||
|
[%- endfor %]
|
||
|
|
||
|
<div class="pull-right">
|
||
|
{% if current_user.is_authenticated %}
|
||
|
<a href="#">{{ current_user.email }}</a> |
|
||
|
<a href="{{ url_for('security.logout') }}">{{ _("Logout") }}</a> |
|
||
|
{% else %}
|
||
|
<a href="{{ url_for('security.login') }}">{{ _("Login") }}</a> |
|
||
|
{% endif %}
|
||
|
</div>
|