{% load static %} <!DOCTYPE html> <html lang="fr-fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{% block title %}{% endblock title %}</title> <link href="{% static 'main.css' %}" rel="stylesheet" type="text/css"> {% block head %}{% endblock head %} </head> <body> <header> {% if request.user.is_authenticated %} <div class="bandeau"> Vous êtes connecté avec le compte <b>{{ user.username }}</b>. {% if request.session.profil == "student" %} Profil actuel : étudiant. {% elif request.session.profil == "colleur" %} Profil actuel : colleur. {% else %} Pas de profil. {% endif %} <form action="{% url 'logout' %}" method="post"> {% csrf_token %} <button type="submit">Se déconnecter</button> </form> </div> {% endif %} {% block header %}{% endblock header %} </header> <main> {% block main %}{% endblock main %} </main> <footer> {% block footer %}© colles.mp2i-vms.fr 2024{% endblock footer %} </footer> </body>