]> Raphaël G. Git Repositories - treebundle/commitdiff
Rename base template
authorRaphaël Gertz <git@rapsys.eu>
Thu, 31 Oct 2024 06:36:09 +0000 (07:36 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 31 Oct 2024 06:36:09 +0000 (07:36 +0100)
Fix various routes

templates/_base.html.twig [moved from Resources/views/base.html.twig with 87% similarity]

similarity index 87%
rename from Resources/views/base.html.twig
rename to templates/_base.html.twig
index 2c4e8ccd494ffd8fe7c959f9ed4a0e21abff2cd1..478951c84d45b9de2da648b3a59fbd27c649f132 100644 (file)
                                                <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('rapsystree_contact') }}" rel="contact">{% trans %}Contact{% endtrans %}</a>
                                                        {% if is_granted('ROLE_ADMIN') %}
-                                                               <a href="{{ path('rapsysair_user') }}">{% trans %}Users{% endtrans %}</a>
-                                                       {% endif %}
-                                                       {% if is_granted('ROLE_GUEST') %}
-                                                               <a href="{{ path('rapsysair_organizer_regulation') }}">{% trans %}Organizer regulation{% endtrans %}</a>
+                                                               <a href="{{ path('rapsysuser_index') }}">{% trans %}Users{% endtrans %}</a>
                                                        {% endif %}
                                                        {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
                                                                <a href="{{ path('rapsysuser_edit', {mail: app.user.mail|short, hash: app.user.mail|short|hash}) }}">{% trans %}My account{% endtrans %}</a>
@@ -90,7 +82,6 @@
                                                                <a href="{{ path('rapsysuser_login') }}">{% trans %}Login{% endtrans %}</a>
                                                                <a href="{{ path('rapsysuser_register') }}">{% trans %}Register{% endtrans %}</a>
                                                        {% endif %}
-                                                       #}
                                                </nav>
                                        {% endblock %}
                        {#
                        {% block content %}
                                <article>
                                        <header>
-                                               <h2>{% trans %}Outdoor space reservation system{% endtrans %}</h2>
+                                               <h2>{% trans %}Veranda gallery system{% endtrans %}</h2>
                                        </header>
                                </article>
                        {% endblock %}
                        {% block footer %}
                                <footer id="footer">
-                                       {#
-                                       <a href="{{ path('rapsysair_about') }}">{% trans %}About{% endtrans %}</a>
+                                       <a href="{{ path('rapsystree_about') }}">{% trans %}About{% endtrans %}</a>
                                        {% if copy is defined and copy %}
                                                <details><summary>{{ copy.long }}</summary><span>{{ copy.short }} <a href="{{ copy.link }}" title="{{ copy.title }}" rel="author">{{ copy.by }}</a></span></details>
                                        {% endif %}
-                                       <a href="{{ path('rapsysair_terms_of_service') }}">{% trans %}Terms of service{% endtrans %}</a>
+                                       <a href="{{ path('rapsystree_terms_of_service') }}">{% trans %}Terms of service{% endtrans %}</a>
                                        {% if alternates is defined and alternates %}
                                                {% set langs = alternates|keys|filter(v => v|length == 5) %}
                                                {% if langs|length > 1 %}
                                        {% else %}
                                                <span>&nbsp;</span>
                                        {% endif %}
-                                       #}
                                </footer>
                        {% endblock %}
                {% endblock %}