]> Raphaƫl G. Git Repositories - treebundle/blob - templates/index.html.twig
Add element repository class with findOneByUidIdPathAsArray method
[treebundle] / templates / index.html.twig
1 {% extends '@RapsysTree/_base.html.twig' %}
2 {% block content %}
3 {% if albums is defined and albums %}
4 {% for id, album in albums %}
5 <article>
6 <header>
7 <h2><a href="{{ album.link }}">{{ album.slug|capitalize }}</a></h2>
8 </header>
9 {% if album.elements is defined and album.elements %}
10 {% for id, element in album.elements %}
11 <section>
12 <header>
13 <h3><a href="{{ element.link }}">{{ element.name }}</a></h3>
14 </header>
15 <p>
16 TODO: miniature if target is a file or image list when directory ?
17 </p>
18 </section>
19 {% endfor %}
20 {% endif %}
21 </article>
22 {% endfor %}
23 {# TODO: XXX: add next and prev links ? #}
24 {% endif %}
25 {% endblock %}