FabulaVotes/templates/base_page.html.tera
trotFunky 1419bb6d51 tempates/base: Change language, update title
Now that we have the name of the world, we can show it in the title.

The base I used supposed an english language page, which is incorrect here.
Set language as French.
2024-07-28 16:55:22 +01:00

36 lines
1 KiB
Text

<!DOCTYPE html>
<html lang="fr">
{% set title = "Vérités Nova Borealis" %}
<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>