partitioncloud-server/partitioncloud/templates/albums/album.html

38 lines
1.0 KiB
HTML
Raw Normal View History

2022-08-13 23:36:10 +02:00
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}{{ album["name"] }}{% endblock %}</h1>
{% endblock %}
{% 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 %}
{% 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 %}
<div id="partitions-grid">
{% for partition in partitions %}
2022-08-14 21:16:21 +02:00
<div class="partition" id="partition-{{ partition['uuid'] }}">
<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>
{% 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 %}