76 lines
3.3 KiB
HTML
76 lines
3.3 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="Le jeu de Musik">
|
|
<meta name="keywords" content="musik, jeu, musique">
|
|
<title>
|
|
{% block title %}
|
|
Musik
|
|
{% endblock title %}
|
|
</title>
|
|
<link rel="icon" href="{% static "logo.svg" %}">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&display=swap"
|
|
rel="stylesheet">
|
|
<link rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.purple.min.css">
|
|
<link rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/remixicon@4.6.0/fonts/remixicon.min.css">
|
|
<link rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.colors.min.css">
|
|
<link rel="stylesheet" href="{% static "css/main.css" %}">
|
|
</head>
|
|
<body>
|
|
{% block body %}
|
|
<header>
|
|
<div class="container">
|
|
<nav>
|
|
<ul>
|
|
<li>
|
|
<a href="{% url 'index' %}">
|
|
<i class="ri-music-ai-fill"></i> <span class="header-title">Musik</span>
|
|
</a>
|
|
</li>
|
|
{% if object.group %}
|
|
<li>
|
|
<a href="{% url 'group_detail' pk=object.group.pk %}">
|
|
<i class="ri-group-2-fill"></i> {{ object.group.name }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
<nav>
|
|
<ul>
|
|
{% if user.is_authenticated %}
|
|
<li>{{ user.username }}</li>
|
|
<li>
|
|
<form action="{% url 'logout' %}" method="post">
|
|
{% csrf_token %}
|
|
<input type="submit" value="Se déconnecter" class="logout">
|
|
</form>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<a href="{% url 'login' %}" role="button">Se connecter <i class="ri-login-box-fill"></i></a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
<main class="container">
|
|
{% for message in messages %}<article class="message {{ message.tags }}">{{ message }}</article>{% endfor %}
|
|
{% block content %}
|
|
{% endblock content %}
|
|
</main>
|
|
<footer class="container">
|
|
{% include "footer.html" %}
|
|
</footer>
|
|
{% endblock body %}
|
|
</body>
|
|
</html>
|