2024-07-27 23:16:19 +01:00
|
|
|
<!DOCTYPE html>
|
2024-07-27 23:20:20 +01:00
|
|
|
<html lang="fr">
|
|
|
|
{% set title = "Vérités Nova Borealis" %}
|
2024-07-27 23:16:19 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>{{ title }}</title>
|
|
|
|
<link href="/static/style.css" rel="stylesheet"/>
|
|
|
|
<link href="/static/favicon.ico" rel="icon"/>
|
|
|
|
{% block scripts %}
|
|
|
|
{% endblock %}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
{% block top_bar %}
|
|
|
|
<div class="top_bar">
|
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
{% if user.logged_in == true %}
|
|
|
|
<form class="login" id="logout" action="/{{ week_data.number }}/logout" method="POST">
|
|
|
|
Connecté en tant que <b>{{ user.name }}</b>
|
|
|
|
<button form="logout">Déconnecter</button>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
<form class="login" id="login" action="/{{ week_data.number }}/login" method="POST">
|
|
|
|
<label>Pseudo <input form="login" type="text" name="name"/></label>
|
|
|
|
<label>Mot de passe <input form="login" type="password" name="password"/></label>
|
|
|
|
<button form="login">Se connecter</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|