partitioncloud-server/partitioncloud/templates/albums/album.html
augustin64 664266bafd Changements mineurs concernant l'interface
Détails:
- Ajout d'une icône
- Modifications concernant les images de profils des utilisateurs
- Changement de l'ordre des partitions
2022-08-24 22:53:51 +02:00

45 lines
1.3 KiB
HTML

{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}{{ album.name }}{% endblock %}</h1>
{% endblock %}
{% block header_actions %}
<div id="users-list">
{% for user in album.users %}
<div class="user-profile-picture" style="background-color:{{ user.color }};" title="{{ user.username }}">
{{ user.username[0] | upper }}
</div>
{% endfor %}
</div>
{% if not_participant %}
<a class="button-href" href="/albums/{{ album.uuid }}/join">
<button id="join-album">Rejoindre</button>
</a>
{% endif %}
{% if g.user %}
<a class="button-href" href="/albums/{{ album.uuid }}/add-partition">
<button id="add-partition">Ajouter une partition</button>
</a>
{% endif %}
{% endblock %}
{% block content %}
{% if partitions|length != 0 %}
<div id="partitions-grid">
{% for partition in partitions | reverse %}
<a href="{{ album.uuid }}/{{ partition['uuid'] }}">
<div class="partition" id="partition-{{ partition['uuid'] }}">
<img class="partition-thumbnail" 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>
</div>
</a>
{% endfor %}
</div>
{% else %}
<div>Aucune partition disponible</div>
{% endif %}
{% endblock %}