]> Raphaël G. Git Repositories - treebundle/commitdiff
Add directory roots to menu
authorRaphaël Gertz <git@rapsys.eu>
Fri, 18 Oct 2024 04:34:31 +0000 (06:34 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 18 Oct 2024 04:34:31 +0000 (06:34 +0200)
Resources/views/base.html.twig

index 6fae26c9b49bc81df7d1addd37bdf6c5e07582f4..2c4e8ccd494ffd8fe7c959f9ed4a0e21abff2cd1 100644 (file)
@@ -71,6 +71,9 @@
                                                <nav id="nav">
                                                        {#<h2>{% trans %}Navigation{% endtrans %}</h2>#}
                                                        <a href="{{ path('rapsystree') }}" rel="home">{% trans %}Home{% endtrans %}</a>
                                                <nav id="nav">
                                                        {#<h2>{% trans %}Navigation{% endtrans %}</h2>#}
                                                        <a href="{{ path('rapsystree') }}" rel="home">{% trans %}Home{% endtrans %}</a>
+                                                       {% for id, path in roots %}
+                                                               <a href="{{ path('rapsystree_directory', {path: id}) }}">{{ id }}</a>
+                                                       {% endfor %}
                                                        {#
                                                        <a href="{{ path('rapsysair_contact') }}" rel="contact">{% trans %}Contact{% endtrans %}</a>
                                                        <a href="{{ path('rapsysair_frequently_asked_questions') }}">{% trans %}Frequently asked questions{% endtrans %}</a>
                                                        {#
                                                        <a href="{{ path('rapsysair_contact') }}" rel="contact">{% trans %}Contact{% endtrans %}</a>
                                                        <a href="{{ path('rapsysair_frequently_asked_questions') }}">{% trans %}Frequently asked questions{% endtrans %}</a>