manuels-scolaires/manuels/templates/manuels/base.html

89 lines
3.8 KiB
HTML
Raw Normal View History

2019-07-02 15:14:17 +02:00
{% load static %}
2018-05-21 21:03:08 +02:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
2021-05-10 09:56:09 +02:00
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
2018-05-21 21:03:08 +02:00
<title>Manuels - {% block title %}{% endblock %}</title>
2019-07-02 15:14:17 +02:00
2021-05-10 09:56:09 +02:00
<link rel="apple-touch-icon" sizes="180x180"
href="{% static 'icons/apple-touch-icon.png' %}">
<link rel="icon" type="image/png" sizes="32x32"
href="{% static 'icons/favicon-32x32.png' %}">
<link rel="icon" type="image/png" sizes="16x16"
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' %}">
2019-07-02 15:14:17 +02:00
<meta name="msapplication-TileColor" content="#2d89ef">
2021-05-10 09:56:09 +02:00
<meta name="msapplication-config"
content="{% static 'icons/browserconfig.xml' %}">
2019-07-02 15:14:17 +02:00
<meta name="theme-color" content="#ffffff">
2021-05-10 09:56:09 +02:00
<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">
2019-07-02 15:14:17 +02:00
2018-05-21 21:03:08 +02:00
</head>
<body>
2021-05-10 09:32:06 +02:00
<div class="d-flex flex-column min-vh-100">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="{% url 'home_page' %}">Manuels scolaires</a>
{% if user.is_authenticated or teacher and teacher.email in authorized_mails %}
2021-05-10 09:56:09 +02:00
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
2021-05-10 09:32:06 +02:00
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'admin:index' %}">
<i class="fas fa-door-open"></i>
Administration
</a>
</li>
</ul>
</div>
{% endif %}
</nav>
<main class="flex-fill">
<div class="container-fluid">
{% for message in messages %}
<div class="alert alert-{{ message.tags }} fade show" role="alert">
{{ message }}
</div>
{% endfor %}
{% block content %}
{% endblock %}
2019-06-21 20:21:53 +02:00
</div>
2021-05-10 09:32:06 +02:00
</main>
2021-05-10 09:56:09 +02:00
2021-05-10 09:32:06 +02:00
<footer class="bg-light py-3">
2021-05-10 09:56:09 +02:00
<div class="container-fluid">
2021-05-10 09:32:06 +02:00
<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
<a href="https://git.augendre.info/gaugendre/manuels-scolaires">à cette adresse</a>.</span>
2021-05-10 09:56:09 +02:00
</div>
2021-05-10 09:32:06 +02:00
</footer>
2018-05-21 21:03:08 +02:00
</div>
2019-06-21 20:37:47 +02:00
<script defer src="https://kit.fontawesome.com/350c07ee78.js"
integrity="sha384-IwFbZvLB3nqmwJikzn6JZAqNDTwjFfauT4djixzjaxmR030Fd2gx05kWWwBLwRYZ"
crossorigin="anonymous"></script>
2021-05-10 09:56:09 +02:00
<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://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
crossorigin="anonymous"></script>
2021-05-10 09:32:06 +02:00
2019-06-08 17:02:32 +02:00
{% block end_js %}
{% endblock %}
2018-05-21 21:03:08 +02:00
</body>
2019-06-25 11:17:00 +02:00
</html>