fix grouping

This commit is contained in:
thomas girod
2024-07-25 18:00:20 +02:00
committed by Bartuccio Antoine
parent d348e6314a
commit 3c76c5e0f1
2 changed files with 8 additions and 3 deletions

View File

@ -22,10 +22,10 @@
{% if can_edit(profile, user) %}
<button disabled id="download" onclick="download('{{ url('api:pictures') }}?users_identified={{ object.id }}')">{% trans %}Download all my pictures{% endtrans %}</button>
{% endif %}
{% for album, album_pictures in pictures|groupby("album") %}
{% for album, pictures in albums|items %}
<h4>{{ album }}</h4>
<div class="photos">
{% for picture in album_pictures %}
{% for picture in pictures %}
{% if picture.can_be_viewed_by(user) %}
<a href="{{ url("sas:picture", picture_id=picture.id) }}#pict">
<div