navigation bar now contains the page title

This commit is contained in:
Faraphel 2024-01-08 11:33:35 +01:00
parent f829efcb9e
commit 7f1564dd0d
14 changed files with 99 additions and 3 deletions

View file

@ -11,7 +11,7 @@ nav {
gap: 10px;
}
#navigation-title {
#navigation-app-name {
font-size: 150%;
}
@ -19,6 +19,10 @@ nav {
width: 20%;
}
#navigation-title {
font-size: 300%;
}
#navigation-buttons {
display: flex;
margin-left: auto;

View file

@ -1,5 +1,13 @@
{% extends "Palto/base/base-features.html" %}
{% block page-title %}
Absences
{% endblock %}
{% block navigation-title %}
Absences
{% endblock %}
{% block body %}
{{ block.super }}

View file

@ -1,5 +1,13 @@
{% extends "Palto/base/base-features.html" %}
{% block page-title %}
Nouvelle Absence
{% endblock %}
{% block navigation-title %}
Nouvelle Absence
{% endblock %}
{% block body %}
{{ block.super }}

View file

@ -1,5 +1,13 @@
{% extends "Palto/base/base-features.html" %}
{% block page-title %}
Absence
{% endblock %}
{% block navigation-title %}
Absence
{% endblock %}
{% block body %}
{{ block.super }}

View file

@ -12,7 +12,11 @@
<nav>
<div id="navigation-header">
<img id="navigation-icon" src="{% static "Palto/favicon.svg" %}" alt="Palto's icon" />
<a id="navigation-title">Palto</a>
<a id="navigation-app-name">Palto</a>
</div>
<div id="navigation-title">
{% block navigation-title %}
{% endblock %}
</div>
<div id="navigation-buttons">
<a href="{% url "Palto:homepage" %}">Home</a>

View file

@ -7,7 +7,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/png" href="{% static 'Palto/favicon.svg' %}"/>
<title>{% block title %}Palto{% endblock %}</title>
<title>{% block page-title %}Palto{% endblock %}</title>
{# base style #}

View file

@ -2,6 +2,14 @@
{% load dict_tags %}
{% load static %}
{% block page-title %}
Départment {{ department.name }}
{% endblock %}
{% block navigation-title %}
Départment {{ department.name }}
{% endblock %}
{% block style %}
{{ block.super }}
<link rel="stylesheet" href="{% static "Palto/css/department_view.css" %}" />

View file

@ -1,6 +1,14 @@
{% extends "Palto/base/base-features.html" %}
{% load static %}
{% block page-title %}
Accueil
{% endblock %}
{% block navigation-title %}
Accueil
{% endblock %}
{% block style %}
{{ block.super }}
<link rel="stylesheet" href="{% static "Palto/css/homepage.css" %}" />

View file

@ -1,6 +1,14 @@
{% extends "Palto/base/base-features.html" %}
{% load static %}
{% block page-title %}
Connexion
{% endblock %}
{% block navigation-title %}
Connexion
{% endblock %}
{% block style %}
{{ block.super }}
<link rel="stylesheet" href="{% static "Palto/css/login.css" %}" />

View file

@ -2,6 +2,14 @@
{% load static %}
{% load dict_tags %}
{% block page-title %}
Profil
{% endblock %}
{% block navigation-title %}
Profil de {{ profile.first_name|title }} {{ profile.last_name|upper }}
{% endblock %}
{% block style %}
{{ block.super }}
<link rel="stylesheet" href="{% static "Palto/css/profile.css" %}" />

View file

@ -1,5 +1,13 @@
{% extends "Palto/base/base-features.html" %}
{% block page-title %}
Groupe Étudiant {{ group.name }}
{% endblock %}
{% block navigation-title %}
Groupe Étudiant {{ group.name }}
{% endblock %}
{% block body %}
{{ block.super }}

View file

@ -1,5 +1,13 @@
{% extends "Palto/base/base-features.html" %}
{% block page-title %}
Sessions
{% endblock %}
{% block navigation-title %}
Sessions
{% endblock %}
{% block body %}
{{ block.super }}
{# table of all the sessions #}

View file

@ -1,6 +1,14 @@
{% extends "Palto/base/base-features.html" %}
{% load dict_tags %}
{% block page-title %}
Session de {{ session.unit.name }}
{% endblock %}
{% block navigation-title %}
Session de {{ session.unit.name }}
{% endblock %}
{% block body %}
{{ block.super }}

View file

@ -1,6 +1,14 @@
{% extends "Palto/base/base-features.html" %}
{% load dict_tags %}
{% block page-title %}
Unité d'Enseignement de {{ unit.name }}
{% endblock %}
{% block navigation-title %}
Unité d'Enseignement de {{ unit.name }}
{% endblock %}
{% block body %}
{{ block.super }}