2021-05-08 12:24:13 +02:00
|
|
|
<a href="{{ url_for('home') }}">{{ _("Home") }}</a> |
|
|
|
|
[%- for nav in navigation_items %]
|
|
|
|
[%- if nav._verbs.list.is_login_required %]
|
2021-05-08 15:52:52 +02:00
|
|
|
{% if has_permission('[[ nav.name|camel_to_snake ]]', 'list') %}
|
2021-05-08 12:24:13 +02:00
|
|
|
[%- 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 %}
|
2021-05-09 13:43:51 +02:00
|
|
|
<a href="#">{{ current_user.username }}</a> |
|
2021-05-08 12:24:13 +02:00
|
|
|
<a href="{{ url_for('security.logout') }}">{{ _("Logout") }}</a> |
|
|
|
|
{% else %}
|
2021-05-09 13:43:51 +02:00
|
|
|
<a href="{{ url_for('security.login') }}">{{ _("Login SSO") }}</a>
|
2021-05-08 12:24:13 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|