2022-08-16 18:44:52 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}Liste des partitions{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if partitions|length != 0 %}
|
|
|
|
<div id="partitions-grid">
|
|
|
|
{% for partition in partitions %}
|
2022-12-19 15:19:58 +01:00
|
|
|
<div>
|
|
|
|
<a href="/partition/{{ partition['uuid'] }}">
|
|
|
|
<div class="partition" id="partition-{{ partition['uuid'] }}">
|
2024-01-16 21:25:32 +01:00
|
|
|
<img class="partition-thumbnail" src="/thumbnails/{{ partition['uuid'] }}.jpg" loading="lazy">
|
2022-12-19 15:19:58 +01:00
|
|
|
<div class="partition-description">
|
|
|
|
<div class="partition-name">{{ partition["name"] }}</div>
|
|
|
|
<div class="partition-author">{{ partition["author"] }}</div>
|
|
|
|
</div>
|
2022-08-16 18:44:52 +02:00
|
|
|
</div>
|
2022-12-19 15:19:58 +01:00
|
|
|
</a>
|
2023-10-26 14:14:40 +02:00
|
|
|
<div class="partition-buttons">
|
|
|
|
{% if partition["has_attachment"] %}
|
|
|
|
<a href="/partition/{{ partition['uuid'] }}/attachments"><div class="partition-action">📎</div></a>
|
|
|
|
{% endif %}
|
|
|
|
<a href="/partition/{{ partition['uuid'] }}/details"><div class="edit-button partition-action">🔍</div></a>
|
|
|
|
</div>
|
2022-12-19 15:19:58 +01:00
|
|
|
</div>
|
2022-08-16 18:44:52 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div>Aucune partition disponible</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|