2022-08-13 23:36:10 +02:00
|
|
|
<!doctype html>
|
2022-08-16 15:21:12 +02:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>{% block title %}{% endblock %} - PartitionCloud</title>
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='mobile.css') }}">
|
2022-08-24 22:53:51 +02:00
|
|
|
<link rel="icon" type="image/png" href="{{ url_for('static', filename='icon.png') }}" />
|
|
|
|
<link rel="apple-touch-icon" href="{{ url_for('static', filename='icon.png') }}">
|
2022-08-16 15:21:12 +02:00
|
|
|
</head>
|
2022-08-13 23:36:10 +02:00
|
|
|
<nav>
|
|
|
|
<h1><a href="{{ url_for('albums.index') }}">PartitionCloud</a></h1>
|
2022-08-31 13:54:13 +02:00
|
|
|
<div class="dropdown">
|
|
|
|
{% if g.user %}
|
|
|
|
<button class="userdropbtn">{{ g.user['username'] }}</button>
|
2022-08-16 15:21:12 +02:00
|
|
|
{% else %}
|
2022-08-31 13:54:13 +02:00
|
|
|
<button class="userdropbtn">Connexion</button>
|
2022-08-16 15:21:12 +02:00
|
|
|
{% endif %}
|
2022-08-31 13:54:13 +02:00
|
|
|
<div class="dropdown-content">
|
|
|
|
{% if not g.user %}
|
|
|
|
<a href="{{ url_for('auth.register') }}">Créer un compte</a>
|
|
|
|
<a href="{{ url_for('auth.login') }}">Se connecter</a>
|
|
|
|
{% else %}
|
|
|
|
{% if g.user.access_level == 1 %}
|
|
|
|
<a href="/admin">Panneau Admin</a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ url_for('auth.logout') }}">Déconnexion</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-08-13 23:36:10 +02:00
|
|
|
</nav>
|
|
|
|
<section class="content">
|
|
|
|
<header>
|
|
|
|
{% block header %}{% endblock %}
|
2022-08-16 00:00:20 +02:00
|
|
|
<div id="header-actions">
|
|
|
|
{% block header_actions %}{% endblock %}
|
|
|
|
</div>
|
2022-08-13 23:36:10 +02:00
|
|
|
</header>
|
|
|
|
{% for message in get_flashed_messages() %}
|
2022-08-16 15:21:12 +02:00
|
|
|
<div class="flash">{{ message }}</div>
|
2022-08-13 23:36:10 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</section>
|