2020-07-12 11:56:10 +02:00
|
|
|
{% 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>
|
2020-07-06 12:03:45 +02:00
|
|
|
<button id="menu-button"><i data-feather="menu"></i></button>
|
|
|
|
<ul id="main-menu">
|
2020-07-06 12:45:36 +02:00
|
|
|
<li><a href="{{ route('about') }}"><i data-feather="info"></i> <span class="tip">About</span></a></li>
|
2020-06-14 15:05:04 +02:00
|
|
|
{% if user %}
|
2020-07-06 12:45:36 +02:00
|
|
|
<li><a href="{{ route('file-manager') }}"><i data-feather="folder"></i> <span class="tip">File manager</span></a></li>
|
|
|
|
<li><a href="{{ route('file-upload') }}"><i data-feather="upload"></i> <span class="tip">Upload file</span></a></li>
|
|
|
|
<li><a href="{{ route('url-manager') }}"><i data-feather="link"></i> <span class="tip">URL manager</span></a></li>
|
2020-07-06 14:52:38 +02:00
|
|
|
<li><a href="{{ route('url-shrinker') }}"><i data-feather="crosshair"></i> <span class="tip">Shrink URL</span></a></li>
|
2020-06-27 16:31:36 +02:00
|
|
|
{% if user.is_admin %}
|
2020-07-06 12:45:36 +02:00
|
|
|
<li><a href="{{ route('backend') }}"><i data-feather="settings"></i> <span class="tip">Backend</span></a></li>
|
2020-06-27 16:31:36 +02:00
|
|
|
{% endif %}
|
2021-01-25 17:43:26 +01:00
|
|
|
<li><a href="{{ route('account') }}"><i data-feather="user"></i> <span class="tip">Account</span></a></li>
|
2020-07-15 10:33:29 +02:00
|
|
|
<li>
|
|
|
|
<form action="{{ route('logout') }}?{{ querystring.stringify({redirect_uri: '/'}) }}" method="POST">
|
|
|
|
<button><i data-feather="log-out"></i> <span class="tip">Logout</span></button>
|
|
|
|
|
2020-11-22 15:19:58 +01:00
|
|
|
{{ macros.csrf(getCsrfToken) }}
|
2020-07-15 10:33:29 +02:00
|
|
|
</form>
|
|
|
|
</li>
|
2020-06-14 15:15:15 +02:00
|
|
|
{% else %}
|
2020-07-06 12:45:36 +02:00
|
|
|
<li><a href="{{ route('auth') }}"><i data-feather="user"></i> <span class="tip">Login / Register</span></a></li>
|
2020-06-14 15:05:04 +02:00
|
|
|
{% endif %}
|
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-11-22 15:19:58 +01:00
|
|
|
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}
|