phd-site/mainsite/templates/base.html

54 lines
1.4 KiB
HTML
Raw Normal View History

2024-11-13 12:19:06 +01:00
{% load static %}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Soutenance de thèse — Théophile Bastian</title>
<link rel="stylesheet" href="{% static "css/style.css" %}">
2024-11-14 01:07:19 +01:00
<link rel="icon" href="{% static "favicon.svg" %}">
2024-11-13 12:19:06 +01:00
</head>
<body>
<header>
{% include "navbar.html" %}
</header>
2024-11-14 01:07:19 +01:00
{% if messages %}
<div id="messages">
{% for message in messages %}
<div class="message {% if message.tags %}{{ message.tags }}{% endif %}">
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
2024-11-13 12:19:06 +01:00
<div id="content">
<main>
{% block content %}
{% endblock content %}
<main>
</div>
</body>
2024-11-14 19:34:40 +01:00
<script>
/* Shamelessly adapted from w3schools */
var coll = document.getElementsByClassName("collapsible-toggle");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
</html>