2020-11-11 19:08:33 +01:00
|
|
|
{% extends 'layouts/barebone.njk' %}
|
2020-11-14 17:24:42 +01:00
|
|
|
{% import 'macros.njk' as macros %}
|
2020-07-08 10:49:29 +02:00
|
|
|
|
|
|
|
{% block _stylesheets %}
|
|
|
|
{{ super() }}
|
|
|
|
<link rel="stylesheet" href="/css/app.css">
|
|
|
|
{% block stylesheets %}{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block _scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
{% block scripts %}{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<a href="/" class="logo"><img src="/img/logo.svg" alt="Logo"> {{ app.name }}</a>
|
|
|
|
<nav>
|
|
|
|
<button id="menu-button"><i data-feather="menu"></i></button>
|
|
|
|
<ul id="main-menu">
|
|
|
|
{% if user %}
|
|
|
|
{% if user.is_admin %}
|
2020-11-14 17:24:42 +01:00
|
|
|
<li><a href="{{ route('backend') }}"><i data-feather="settings"></i> <span class="tip">Backend</span></a></li>
|
2020-07-08 10:49:29 +02:00
|
|
|
{% endif %}
|
2020-11-14 17:24:42 +01:00
|
|
|
|
|
|
|
{# <li><a href="{{ route('account') }}"><i data-feather="user"></i>#}
|
|
|
|
{# <span class="tip">{{ user.name }}</span></a></li>#}
|
|
|
|
<li>
|
|
|
|
<form action="{{ route('logout') }}" method="POST">
|
|
|
|
<button><i data-feather="log-out"></i> <span class="tip">Logout</span></button>
|
|
|
|
{{ macros.csrf(getCsrfToken) }}
|
|
|
|
</form>
|
|
|
|
</li>
|
2020-07-08 10:49:29 +02:00
|
|
|
{% else %}
|
|
|
|
<li><a href="{{ route('auth') }}"><i data-feather="log-in"></i> Log in / Register</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block _body %}
|
|
|
|
<div class="container">
|
|
|
|
{{ macros.messages(flash) }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<main>
|
|
|
|
{% if h1 %}
|
|
|
|
<h1>{{ h1 }}</h1>
|
|
|
|
{% endif %}
|
|
|
|
{% if subtitle %}
|
|
|
|
<p>{{ subtitle }}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% block body %}{% endblock %}
|
|
|
|
</main>
|
|
|
|
{% endblock %}
|
|
|
|
|
2020-11-11 19:08:33 +01:00
|
|
|
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}
|