]> Raphaël G. Git Repositories - treebundle/commitdiff
Base index template
authorRaphaël Gertz <git@rapsys.eu>
Thu, 31 Oct 2024 06:37:16 +0000 (07:37 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 31 Oct 2024 06:37:16 +0000 (07:37 +0100)
Resources/views/index.html.twig [deleted file]
templates/index.html.twig [new file with mode: 0644]

diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig
deleted file mode 100644 (file)
index 1ec5d90..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-{% extends '@RapsysTree/base.html.twig' %}
-{% block content %}
-       TODO
-{% endblock %}
diff --git a/templates/index.html.twig b/templates/index.html.twig
new file mode 100644 (file)
index 0000000..b7fd158
--- /dev/null
@@ -0,0 +1,19 @@
+{% extends '@RapsysTree/_base.html.twig' %}
+{% block content %}
+       <article>
+               <header>
+                       <h2><a href="{{ path('rapsystree') }}">{{ title.section }}</a></h2>
+                       <p>{{ description }}</p>
+               </header>
+               <div>
+                       {% for id, path in roots %}
+                               <section>
+                                       <header>
+                                               <h3><a href="{{ path('rapsystree_directory', {path: id}) }}">{{ id }}</a></h3>
+                                       </header>
+                                       TODO: list of images ?
+                               </section>
+                       {% endfor %}
+               </div>
+       </article>
+{% endblock %}