actix-admin/templates/header.html
2022-08-06 21:49:52 +02:00

40 lines
1.1 KiB
HTML

<nav class="navbar is-dark mb-4" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/admin/">
Actix Admin
</a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
{% for entity_name in entity_names -%}
<a href="/admin/{{ entity_name }}/list" class="navbar-item">{{ entity_name | title }}</a>
{%- endfor %}
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
{% if enable_auth %}
{% if user_is_logged_in %}
<a href="{{ logout_link }}" class="button is-light">
Log out
</a>
{% else %}
<a href="{{ login_link }}" class="button is-light">
Log in
</a>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
</nav>