templates: added tabtitles to all relevant templates

This commit is contained in:
Darks 2023-06-06 22:27:17 +02:00
parent 6d1d6a1b2e
commit 3f8f8ab225
Signed by: Darks
GPG Key ID: 7515644268BE1433
37 changed files with 75 additions and 6 deletions

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Gestion du compte" %}
{% block title %}
<h1>Gestion du compte</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Réinitialiser le mot de passe" %}
{% block content %}
<section class="form" style="width:40%;">
<h1>Réinitialiser le mot de passe</h1>

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Suppression du compte" %}
{% block content %}
<section class="form">
<h1>Suppression du compte</h2>

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Connexion" %}
{% block content %}
<section class="form" style="width:40%;">
<h1>Connexion</h1>

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Notifications" %}
{% block title %}
<h1>Notifications</h1>
{% endblock %}

View File

@ -1,6 +1,8 @@
{% extends "base/base.html" %}
{% import "widgets/poll.html" as poll_widget with context %}
{% set tabtitle = "Gestion des sondages" %}
{% block title %}
<h1>Gestion des sondages</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Inscription" %}
{% block content %}
<section class="form" style="width:40%;">
<h1>Inscription</h1>

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Réinitialiser le mot de passe" %}
{% block content %}
<section class="form" style="width:40%;">
<h1>Réinitialiser le mot de passe</h1>

View File

@ -1,6 +1,8 @@
{% extends "base/base.html" %}
{% import "widgets/user.html" as widget_member %}
{% set tabtitle = "Profil de " + member.name %}
{% block title %}
<h1>Profil de {{ member.name }}</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Inscription réussie" %}
{% block content %}
<section>
<div>

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Administration - Pièces-jointes" %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Pièces jointes</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Administration - Configuration du site" %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Configuration du site</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = f"Administration - Suppression du compte de " + user.name %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Suppression du compte de '{{ user.name }}'</h1>
{% endblock %}

View File

@ -1,7 +1,9 @@
{% extends "base/base.html" %}
{% set tabtitle = f"Administration - Édition du compte de " + user.name %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Édition du compte de {{ user.name }}</h1>
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Édition du compte de {{ user.name }}</h1>
{% endblock %}
{% block content %}

View File

@ -16,6 +16,8 @@
{% endfor %}
{% endmacro %}
{% set tabtitle = "Administration - Forums" %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Forums</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Administration - Groupes et privilèges" %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Groupes et privilèges</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Panneau dadministration" %}
{% block title %}
<h1>Panneau d'administration</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Administration - Vandaliser un compte" %}
{% block title %}
<h1>Vandaliser un compte</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Administration - Liste des membres" %}
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Liste des membres</h1>
{% endblock %}

View File

@ -1,8 +1,10 @@
{% extends "base/base.html" %}
{% import "widgets/poll.html" as poll_widget with context %}
{% set tabtitle = "Administration - Gestion des sondages" %}
{% block title %}
<h1>Gestion des sondages</h1>
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Gestion des sondages</h1>
{% endblock %}
{% block content %}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="fr-FR">
{% include "base/head.html" %}
{% include "base/head.html" with context %}
<body>
<div><a class="skip-to-content-link" href="#main-content">Aller directement au contenu</a></div>
{% include "base/navbar.html" %}

View File

@ -1,5 +1,5 @@
<head>
<title>Planète Casio</title>
<title>{{ tabtitle or "Planète Casio" }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Erreur 403 - Accès non autorisé" %}
{% block title %}
<h1>403 - Accès non autorisé</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Erreur 404 - Page non trouvée" %}
{% block title %}
<h1>404 - Page non trouvée</h1>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% import "widgets/editor.html" as widget_editor %}
{% import "widgets/user.html" as widget_user %}
{% set tabtitle = "Forum - Édition de commentaire" %}
{% block title %}
<a href='/forum'>Forum de Planète Casio</a> » Édition de commentaire</h1>
{% endblock %}

View File

@ -4,6 +4,8 @@
{% import "widgets/editor.html" as widget_editor %}
{% import "widgets/user.html" as widget_user %}
{% set tabtitle = t.forum.name + " - Édition du sujet: " + t.title %}
{% block title %}
<a href='/forum'>Forum de Planète Casio</a> » <a href="{{ url_for('forum_page', f=t.forum) }}">{{ t.forum.name }}</a> » <h1>Édition de sujet</h1>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% import "widgets/editor.html" as widget_editor %}
{% import "widgets/pagination.html" as widget_pagination with context %}
{% set tabtitle = "Forum - " + f.name %}
{% block title %}
<a href='/forum'>Forum de Planète Casio</a> » <h1>{{ f.name }}</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Forum de Planète Casio" %}
{% block title %}
<h1>Forum de Planète Casio</h1>
{% endblock %}

View File

@ -5,6 +5,8 @@
{% import "widgets/pagination.html" as widget_pagination with context %}
{% import "widgets/attachments.html" as widget_attachments %}
{% set tabtitle = t.forum.name + " - " + t.title %}
{% block title %}
<a href='/forum'>Forum de Planète Casio</a> » <a href="{{ url_for('forum_page', f=t.forum) }}">{{ t.forum.name }}</a> » <h1>{{ t.title }}</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Planète Casio" %}
{% block title %}
<h1>Planète Casio</h1>
{% endblock %}

View File

@ -1,6 +1,8 @@
{% extends "base/base.html" %}
{% import "widgets/poll.html" as poll_widget with context %}
{% set tabtitle = "Supprimer un sondage" %}
{% block title %}
<h1>Supprimer un sondage</h1>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% import "widgets/editor.html" as widget_editor %}
{% import "widgets/user.html" as widget_user %}
{% set tabtitle = "Déplacer un commentaire" %}
{% block title %}
<a href='/forum'>Forum de Planète Casio</a> » Édition de commentaire</h1>
{% endblock %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Programmes de Planète Casio" %}
{% block title %}
<h1>Programmes de Planète Casio</h1>
{% endblock %}

View File

@ -5,9 +5,10 @@
{% import "widgets/pagination.html" as widget_pagination with context %}
{% import "widgets/attachments.html" as widget_attachments %}
{% set tabtitle = "Programmes - " + p.name %}
{% block title %}
<h1>Programme: {{ p.name }}</h1>
<a href="{{ url_for('program_index') }}">Programmes</a> » <h1>{{ p.name }}</h1>
{% endblock %}
{% block content %}

View File

@ -2,8 +2,10 @@
{% import "widgets/editor.html" as widget_editor %}
{% import "widgets/tag_selector.html" as widget_tag_selector with context %}
{% set tabtitle = f"Programmes - Soumettre un programme" %}
{% block title %}
<h1>Programmes de Planète Casio</h1>
<a href="{{ url_for('program_index') }}">Programmes</a> » <h1>Soumettre un programme</h1>
{% endblock %}
{% block content %}

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Recherche avancée" %}
{% block content %}
<section class="form">
<h1>Recherche avancée</h1>

View File

@ -1,5 +1,7 @@
{% extends "base/base.html" %}
{% set tabtitle = "Outils" %}
{% block title %}
<h1>Outils</h1>
{% endblock %}