51 lines
1.5 KiB
HTML
51 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>UniSquat</title>
|
|
<link rel="stylesheet" type="text/css" href="../static/billboardstyle.css">
|
|
<meta name="viewport" content="width=300, initial-scale=1" />
|
|
</head>
|
|
<body>
|
|
<h1><b>Salles disponibles</b></h1>
|
|
<h2>{{ depts_str }}</h2>
|
|
<div class="slider">
|
|
<div class="slide-track">
|
|
{% if favs: %}
|
|
<!-- Afficher les favoris -->
|
|
<!-- Deux fois pour que l'animation boucle -->
|
|
{% for i in range(2) : %}
|
|
{% if favs_free_rooms|length > 0 : %}
|
|
{% for room in favs_free_rooms : %}
|
|
<div class="room">
|
|
<b>{{ room.name }}</b> {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
|
{% if not(room.noend) : %}
|
|
<p class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }}</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
<!-- Si les favoris ne sont pas définis, afficher les salles classiques -->
|
|
{% for i in range(2):%}
|
|
{% if free_rooms|length>0 %}
|
|
{% for room in free_rooms: %}
|
|
<div class="room">
|
|
<b>{{ room.name }}</b> {% if DEBUG : %}( {{ room.id }} ){% endif %}
|
|
{% if not room.noend : %}
|
|
<p class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }}</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
Propulsé par UniSquat : <a href="https://unisquat.alwaysdata.net">https://unisquat.alwaysdata.net</a>
|
|
</footer>
|
|
</body>
|
|
</html>
|