Fix base template

This commit is contained in:
Gabriel Augendre 2021-05-10 09:56:09 +02:00
parent 9020655a34
commit 212889e9a1

View file

@ -4,20 +4,28 @@
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Manuels - {% block title %}{% endblock %}</title> <title>Manuels - {% block title %}{% endblock %}</title>
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'icons/apple-touch-icon.png' %}?v=yyLzeamAbE"> <link rel="apple-touch-icon" sizes="180x180"
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'icons/favicon-32x32.png' %}?v=yyLzeamAbE"> href="{% static 'icons/apple-touch-icon.png' %}">
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'icons/favicon-16x16.png' %}?v=yyLzeamAbE"> <link rel="icon" type="image/png" sizes="32x32"
<link rel="manifest" href="{% static 'icons/site.webmanifest' %}?v=yyLzeamAbE"> href="{% static 'icons/favicon-32x32.png' %}">
<link rel="mask-icon" href="{% static 'icons/safari-pinned-tab.svg' %}?v=yyLzeamAbE" color="#000000"> <link rel="icon" type="image/png" sizes="16x16"
<link rel="shortcut icon" href="{% static 'icons/favicon.ico' %}?v=yyLzeamAbE"> href="{% static 'icons/favicon-16x16.png' %}">
<link rel="manifest" href="{% static 'icons/site.webmanifest' %}">
<link rel="mask-icon" href="{% static 'icons/safari-pinned-tab.svg' %}"
color="#000000">
<link rel="shortcut icon" href="{% static 'icons/favicon.ico' %}">
<meta name="msapplication-TileColor" content="#2d89ef"> <meta name="msapplication-TileColor" content="#2d89ef">
<meta name="msapplication-config" content="{% static 'icons/browserconfig.xml' %}?v=yyLzeamAbE"> <meta name="msapplication-config"
content="{% static 'icons/browserconfig.xml' %}">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> <link rel="stylesheet"
<!-- <link rel="stylesheet" href="{% static 'css/style.css' %}">--> href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
crossorigin="anonymous">
</head> </head>
<body> <body>
@ -25,8 +33,10 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="{% url 'home_page' %}">Manuels scolaires</a> <a class="navbar-brand" href="{% url 'home_page' %}">Manuels scolaires</a>
{% if user.is_authenticated or teacher and teacher.email in authorized_mails %} {% if user.is_authenticated or teacher and teacher.email in authorized_mails %}
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" <button class="navbar-toggler" type="button" data-toggle="collapse"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
@ -54,19 +64,23 @@
</main> </main>
<footer class="bg-light py-3"> <footer class="bg-light py-3">
<div class="container-fluid"> <div class="container-fluid">
<span class="text-muted">Ce service est un logiciel libre sous licence MIT réalisé par <span class="text-muted">Ce service est un logiciel libre sous licence MIT réalisé par
Gabriel Augendre d'après des besoins exprimés par Sandrine Augendre. Le code source est disponible Gabriel Augendre d'après des besoins exprimés par Sandrine Augendre. Le code source est disponible
<a href="https://git.augendre.info/gaugendre/manuels-scolaires">à cette adresse</a>.</span> <a href="https://git.augendre.info/gaugendre/manuels-scolaires">à cette adresse</a>.</span>
</div> </div>
</footer> </footer>
</div> </div>
<script defer src="https://kit.fontawesome.com/350c07ee78.js" <script defer src="https://kit.fontawesome.com/350c07ee78.js"
integrity="sha384-IwFbZvLB3nqmwJikzn6JZAqNDTwjFfauT4djixzjaxmR030Fd2gx05kWWwBLwRYZ" integrity="sha384-IwFbZvLB3nqmwJikzn6JZAqNDTwjFfauT4djixzjaxmR030Fd2gx05kWWwBLwRYZ"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script> integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
crossorigin="anonymous"></script>
{% block end_js %} {% block end_js %}
{% endblock %} {% endblock %}