X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/85e71b7f13c02250139ee29ff3fb18ffcc5fabc6..ad8124dcef6a76e6b458c44622b6285fa522ac01:/templates/index.html.twig?ds=inline diff --git a/templates/index.html.twig b/templates/index.html.twig index b7fd158..75da781 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|capitalize }}

+
+ {% if album.elements is defined and album.elements %} + {% for id, element in album.elements %} +
+
+

{{ element.name }}

+
+

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

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