trotFunky
19898e1b09
Create a new table representing tags, composed of a name and color. They can be used to tag truths and filter them later. Tags display under the truths they correspond to and can be clicked to access all truths matching this tag. Introduce a new element in the top bar to allow navigating to the tag list, which can be used to create and edit tags for the admin and used to select a list of tags to filter against for everyone. Update the database records of the truths to include the tag vector. As the database query result is a multi-row result, it cannot be parsed automatically so it needs to be skipped and retrieved manually.
50 lines
1.4 KiB
Text
50 lines
1.4 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">
|
|
<div class="top_bar_side">
|
|
<h1><a href="/">{{ title }}</a></h1>
|
|
<nav>
|
|
Aller à :
|
|
<a href="/">Vérités</a>
|
|
-
|
|
<a href="/tags">Thèmes</a>
|
|
</nav>
|
|
</div>
|
|
<div class="top_bar_side">
|
|
{% block top_bar_side %}
|
|
<div>
|
|
{% 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 %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
{% endblock %}
|
|
|
|
</body>
|
|
</html>
|