From: Raphaƫl Gertz Date: Sun, 3 Nov 2024 04:35:14 +0000 (+0100) Subject: New index listing albums and resources X-Git-Tag: 0.0.7~10 X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/6ac58a47c1fa39b19ca3ad3a6d2a09ccb32abf55?ds=sidebyside New index listing albums and resources --- diff --git a/templates/index.html.twig b/templates/index.html.twig index b7fd158..0c95ed5 100644 --- a/templates/index.html.twig +++ b/templates/index.html.twig @@ -1,19 +1,25 @@ {% extends '@RapsysTree/_base.html.twig' %} {% block content %} -
-
-

{{ title.section }}

-

{{ description }}

-
-
- {% for id, path in roots %} -
-
-

{{ id }}

-
- TODO: list of images ? -
- {% endfor %} -
-
+ {% if albums is defined and albums %} + {% for id, album in albums %} +
+
+

{{ album.slug }}

+
+ {% if album.assets is defined and album.assets %} + {% for id, asset in album.assets %} +
+
+

{{ asset.path }}

+
+

+ TODO: miniature if target is a file or image list when directory ? +

+
+ {% endfor %} + {% endif %} +
+ {% endfor %} + {# TODO: XXX: add next and prev links ? #} + {% endif %} {% endblock %}