mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
fix grouping
This commit is contained in:
committed by
Bartuccio Antoine
parent
d348e6314a
commit
3c76c5e0f1
@ -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
|
||||
|
Reference in New Issue
Block a user