fix album grouping on user pictures page

This commit is contained in:
imperosol
2025-06-11 18:14:35 +02:00
parent 9c3820f986
commit 75b37cd6e3
4 changed files with 22 additions and 14 deletions

View File

@ -20,11 +20,11 @@
{{ download_button(_("Download all my pictures")) }}
{% endif %}
<template x-for="[album, pictures] in Object.entries(albums)" x-cloak>
<template x-for="[album_id, pictures] in Object.entries(albums)" x-cloak>
<section>
<br />
<div class="row">
<h4 x-text="album"></h4>
<h4 x-text="pictures[0].album.name" :id="`album-${album_id}`"></h4>
{% if user.id == object.id %}
&nbsp;{{ download_button("") }}
{% endif %}