2022-08-13 23:36:10 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}{{ album["name"] }}{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-08-16 00:00:20 +02:00
|
|
|
{% block header_actions %}
|
2022-08-14 13:24:05 +02:00
|
|
|
{% if not_participant %}
|
2022-08-14 21:16:21 +02:00
|
|
|
<a href="/albums/{{ album['uuid'] }}/join">
|
|
|
|
<button id="join-album">Rejoindre</button>
|
|
|
|
</a>
|
2022-08-14 13:24:05 +02:00
|
|
|
{% endif %}
|
2022-08-16 00:00:20 +02:00
|
|
|
{% if g.user %}
|
|
|
|
<a href="/albums/{{ album['uuid'] }}/add-partition">
|
|
|
|
<button id="add-partition">Ajouter une partition</button>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-08-13 23:36:10 +02:00
|
|
|
{% if partitions|length != 0 %}
|
2022-08-16 00:00:20 +02:00
|
|
|
<div id="partitions-grid">
|
|
|
|
{% for partition in partitions %}
|
2022-08-14 21:16:21 +02:00
|
|
|
<div class="partition" id="partition-{{ partition['uuid'] }}">
|
2022-08-16 00:00:20 +02:00
|
|
|
<a href="{{ album['uuid'] }}/{{ partition['uuid'] }}">
|
|
|
|
<img src="/static/thumbnails/{{ partition['uuid'] }}.jpg">
|
|
|
|
<div class="partition-description">
|
|
|
|
<div class="partition-name">{{ partition["name"] }}</div>
|
|
|
|
<div class="partition-author">{{ partition["author"] }}</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
2022-08-14 21:16:21 +02:00
|
|
|
</div>
|
2022-08-16 00:00:20 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-08-13 23:36:10 +02:00
|
|
|
{% else %}
|
2022-08-14 21:16:21 +02:00
|
|
|
<div>Aucune partition disponible</div>
|
2022-08-13 23:36:10 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|