]> Raphaƫl G. Git Repositories - treebundle/blobdiff - templates/index.html.twig
Add element repository class with findOneByUidIdPathAsArray method
[treebundle] / templates / index.html.twig
index 0c95ed56b026b0f3e3564d940c809df4385984d1..75da781419d21f8a8386f4f7f9f418c0eeeaff0d 100644 (file)
@@ -4,13 +4,13 @@
                {% for id, album in albums %}
                        <article>
                                <header>
-                                       <h2><a href="{{ album.link }}">{{ album.slug }}</a></h2>
+                                       <h2><a href="{{ album.link }}">{{ album.slug|capitalize }}</a></h2>
                                </header>
-                               {% if album.assets is defined and album.assets %}
-                                       {% for id, asset in album.assets %}
+                               {% if album.elements is defined and album.elements %}
+                                       {% for id, element in album.elements %}
                                                <section>
                                                        <header>
-                                                               <h3><a href="{{ asset.link }}">{{ asset.path }}</a></h3>
+                                                               <h3><a href="{{ element.link }}">{{ element.name }}</a></h3>
                                                        </header>
                                                        <p>
                                                                TODO: miniature if target is a file or image list when directory ?