]> Raphaƫl G. Git Repositories - treebundle/blob - templates/index.html.twig
Remove document route
[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 }}</a></h2>
8 </header>
9 {% if album.assets is defined and album.assets %}
10 {% for id, asset in album.assets %}
11 <section>
12 <header>
13 <h3><a href="{{ asset.link }}">{{ asset.path }}</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 %}