Update bootstrap & add footer
This commit is contained in:
parent
ff28dafc80
commit
3f4e1cc866
1 changed files with 43 additions and 38 deletions
|
@ -16,53 +16,58 @@
|
||||||
<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' %}?v=yyLzeamAbE">
|
||||||
<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" href="{% static 'css/style.css' %}">-->
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
|
||||||
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
<div class="d-flex flex-column min-vh-100">
|
||||||
<a class="navbar-brand" href="{% url 'home_page' %}">Manuels scolaires</a>
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
{% if user.is_authenticated or teacher and teacher.email in authorized_mails %}
|
<a class="navbar-brand" href="{% url 'home_page' %}">Manuels scolaires</a>
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
{% if user.is_authenticated or teacher and teacher.email in authorized_mails %}
|
||||||
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
|
||||||
<span class="navbar-toggler-icon"></span>
|
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
</button>
|
<span class="navbar-toggler-icon"></span>
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
</button>
|
||||||
<ul class="navbar-nav ml-auto">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<li class="nav-item">
|
<ul class="navbar-nav ml-auto">
|
||||||
<a class="nav-link" href="{% url 'admin:index' %}">
|
<li class="nav-item">
|
||||||
<i class="fas fa-door-open"></i>
|
<a class="nav-link" href="{% url 'admin:index' %}">
|
||||||
Administration
|
<i class="fas fa-door-open"></i>
|
||||||
</a>
|
Administration
|
||||||
</li>
|
</a>
|
||||||
</ul>
|
</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 %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</main>
|
||||||
</nav>
|
|
||||||
<div class="container-fluid">
|
<footer class="bg-light py-3">
|
||||||
{% for message in messages %}
|
<div class="container-fluid">
|
||||||
<div class="alert alert-{{ message.tags }} fade show" role="alert">
|
<span class="text-muted">Ce service est un logiciel libre sous licence MIT réalisé par
|
||||||
{{ message }}
|
Gabriel Augendre d'après des besoins exprimés par Sandrine Augendre. Le code source est disponible
|
||||||
</div>
|
<a href="https://git.augendre.info/gaugendre/manuels-scolaires">à cette adresse</a>.</span>
|
||||||
{% endfor %}
|
</div>
|
||||||
{% block content %}
|
</footer>
|
||||||
{% endblock %}
|
|
||||||
</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 defer src="https://code.jquery.com/jquery-3.4.1.min.js"
|
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||||
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
|
|
||||||
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
<script defer src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
|
|
||||||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
{% block end_js %}
|
{% block end_js %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue