rainbox.email/views/layouts/base.njk

49 lines
1.6 KiB
Plaintext
Raw Normal View History

{% extends 'layouts/barebone.njk' %}
2020-04-23 18:07:49 +02:00
{% import 'macros.njk' as macros %}
{% block _stylesheets %}
{{ super() }}
<link rel="stylesheet" href="/css/app.css">
{% block stylesheets %}{% endblock %}
{% endblock %}
{% block _scripts %}
{{ super() }}
{% block scripts %}{% endblock %}
{% endblock %}
{% block header %}
2020-06-27 17:20:06 +02:00
<a href="/" class="logo"><img src="/img/logo.svg" alt="Logo"> {{ app.name }}</a>
2020-04-23 18:07:49 +02:00
<nav>
<button id="menu-button"><i data-feather="menu"></i></button>
<ul id="main-menu">
2020-04-23 18:07:49 +02:00
<li><a href="{{ route('about') }}"><i data-feather="info"></i> About</a></li>
2020-04-25 09:41:22 +02:00
{% if user %}
<li><a href="{{ route('home') }}"><i data-feather="user"></i> {{ user.name }}</a></li>
<li><a href="{{ route('logout') }}"><i data-feather="log-out"></i> Logout</a></li>
{% else %}
<li><a href="{{ route('login') }}"><i data-feather="log-in"></i> Login</a></li>
<li><a href="{{ route('register') }}"><i data-feather="user-plus"></i> Register</a></li>
{% endif %}
2020-07-15 11:04:45 +02:00
<li><a href="{{ route('about') }}"><i data-feather="info"></i> <span class="tip">About</span></a></li>
2020-04-23 18:07:49 +02:00
</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-06-27 17:20:06 +02:00
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}