]> Raphaël G. Git Repositories - blogbundle/commitdiff
Rename rapsys_blog route to rapsysblog
authorRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 09:46:45 +0000 (11:46 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 14 Oct 2025 09:46:45 +0000 (11:46 +0200)
Rename rapsys_user route to rapsysuser
New context layout

25 files changed:
Resources/views/article/index.html.twig [deleted file]
Resources/views/index.html.twig [deleted file]
Resources/views/keyword/index.html.twig [deleted file]
templates/about.html.twig [moved from Resources/views/about.html.twig with 84% similarity]
templates/article/index.html.twig [new file with mode: 0644]
templates/article/view.html.twig [moved from Resources/views/article/view.html.twig with 75% similarity]
templates/form/contact.html.twig [moved from Resources/views/form/contact.html.twig with 92% similarity]
templates/form/edit.html.twig [moved from Resources/views/form/edit.html.twig with 100% similarity]
templates/form/form_div_layout.html.twig [moved from Resources/views/form/form_div_layout.html.twig with 100% similarity]
templates/form/login.html.twig [moved from Resources/views/form/login.html.twig with 82% similarity]
templates/form/recover.html.twig [moved from Resources/views/form/recover.html.twig with 90% similarity]
templates/form/register.html.twig [moved from Resources/views/form/register.html.twig with 95% similarity]
templates/index.html.twig [new file with mode: 0644]
templates/keyword/index.html.twig [new file with mode: 0644]
templates/keyword/view.html.twig [moved from Resources/views/keyword/view.html.twig with 67% similarity]
templates/mail/_base.html.twig [moved from Resources/views/mail/_base.html.twig with 100% similarity]
templates/mail/contact.html.twig [moved from Resources/views/mail/contact.html.twig with 100% similarity]
templates/mail/contact.text.twig [moved from Resources/views/mail/contact.text.twig with 100% similarity]
templates/mail/recover.html.twig [moved from Resources/views/mail/recover.html.twig with 100% similarity]
templates/mail/recover.text.twig [moved from Resources/views/mail/recover.text.twig with 100% similarity]
templates/mail/register.html.twig [moved from Resources/views/mail/register.html.twig with 100% similarity]
templates/mail/register.text.twig [moved from Resources/views/mail/register.text.twig with 100% similarity]
templates/page/about.html.twig [moved from Resources/views/page/about.html.twig with 100% similarity]
templates/user/index.html.twig [moved from Resources/views/user/index.html.twig with 80% similarity]
templates/user/view.html.twig [moved from Resources/views/user/view.html.twig with 100% similarity]

diff --git a/Resources/views/article/index.html.twig b/Resources/views/article/index.html.twig
deleted file mode 100644 (file)
index 512e0fa..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends '@RapsysBlog/_base.html.twig' %}
-{% block content %}
-       <section id="content">
-               <header>
-                       <h1><a href="{{ path('rapsys_blog_article') }}">{{ title }}</a></h1>
-                       <p>{{ description }}</p>
-               </header>
-               <section>
-                       {% for article in articles %}
-                               <article>
-                                       <header>
-                                               <h2><a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
-                                       </header>
-                                       <section>
-                                               <p>{{ article.description }}</p>
-                                               {% if article.keywords is defined and article.keywords %}
-                                                       <nav>
-                                                               {% for keyword in article.keywords %}
-                                                                       <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
-                                                               {% endfor %}
-                                                       </nav>
-                                               {% endif %}
-                                       </section>
-                                       <footer>
-                                               <nav>
-                                                       <a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
-                                               </nav>
-                                       </footer>
-                               </article>
-                       {% endfor %}
-               </section>
-               {% if head.prev is defined or head.next is defined %}
-                       <footer>
-                               <nav class="pager">
-                                       {% if head.prev is defined %}
-                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous articles{% endtrans %}</a>
-                                       {% endif %}
-                                       {% if head.next is defined %}
-                                               <a href="{{ head.next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
-                                       {% endif %}
-                               </nav>
-                       </footer>
-               {% endif %}
-       </section>
-{% endblock %}
diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig
deleted file mode 100644 (file)
index 464fd8a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends '@RapsysBlog/_base.html.twig' %}
-{% block content %}
-       <section id="content">
-               <header>
-                       <h1 id="title"><a href="{{ head.canonical }}">{{ title }}</a></h1>
-                       <p>{{ description }}</p>
-               </header>
-               <section>
-                       {% for article in articles %}
-                               <article>
-                                       <header>
-                                               <h2><a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
-                                       </header>
-                                       <section>
-                                               <p>{{ article.description }}</p>
-                                               {% if article.keywords is defined and article.keywords %}
-                                                       <nav>
-                                                               {% for keyword in article.keywords %}
-                                                                       <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
-                                                               {% endfor %}
-                                                       </nav>
-                                               {% endif %}
-                                       </section>
-                                       <footer>
-                                               <nav>
-                                                       <a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
-                                               </nav>
-                                       </footer>
-                               </article>
-                       {% endfor %}
-               </section>
-               {% if head.prev is defined or head.next is defined %}
-                       <footer>
-                               <nav class="pager">
-                                       {% if head.prev is defined %}
-                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous articles{% endtrans %}</a>
-                                       {% endif %}
-                                       {% if head.next is defined %}
-                                               <a href="{{ head.next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
-                                       {% endif %}
-                               </nav>
-                       </footer>
-               {% endif %}
-       </section>
-{% endblock %}
diff --git a/Resources/views/keyword/index.html.twig b/Resources/views/keyword/index.html.twig
deleted file mode 100644 (file)
index dae4b70..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-{% extends '@RapsysBlog/_base.html.twig' %}
-{% block content %}
-       <section id="content">
-               <header>
-                       <h1><a href="{{ path('rapsys_blog_keyword') }}">{{ title }}</a></h1>
-                       <p>{{ description }}</p>
-               </header>
-               <section>
-                       {% for keyword in keywords %}
-                               <article>
-                                       <header>
-                                               <h2><a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a></h2>
-                                       </header>
-                                       <section>
-                                               <p>{{ keyword.description }}</p>
-                                               {#{% if article.keywords is defined and article.keywords %}
-                                                       <nav>
-                                                               {% for keyword in article.keywords %}
-                                                                       <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
-                                                               {% endfor %}
-                                                       </nav>
-                                               {% endif %}#}
-                                       </section>
-                                       <footer>
-                                               <nav>
-                                                       <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
-                                               </nav>
-                                       </footer>
-                               </article>
-                       {% endfor %}
-               </section>
-               {% if head.prev is defined or head.next is defined %}
-                       <footer>
-                               <nav class="pager">
-                                       {% if head.prev is defined %}
-                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
-                                       {% endif %}
-                                       {% if head.next is defined %}
-                                               <a href="{{ head.next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
-                                       {% endif %}
-                               </nav>
-                       </footer>
-               {% endif %}
-       </section>
-{% endblock %}
similarity index 84%
rename from Resources/views/about.html.twig
rename to templates/about.html.twig
index b5a584020e5c26f5febc40ab110289ff270fb95a..ab7b440c352f5e0b5135210d31a0ba6a4f6993a5 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <article id="content">
                <header>
-                       <h1><a href="{{ head.canonical }}">{{ title }}</a></h1>
+                       <h1><a href="{{ canonical }}">{{ title.page }}</a></h1>
                        <p>{{ description }}</p>
                </header>
                <section>
diff --git a/templates/article/index.html.twig b/templates/article/index.html.twig
new file mode 100644 (file)
index 0000000..c1a8aab
--- /dev/null
@@ -0,0 +1,45 @@
+{% extends '@RapsysBlog/_base.html.twig' %}
+{% block content %}
+       <section id="content">
+               <header>
+                       <h1><a href="{{ path('rapsysblog_article') }}">{{ title.page }}</a></h1>
+                       <p>{{ description }}</p>
+               </header>
+               <section>
+                       {% for article in articles %}
+                               <article>
+                                       <header>
+                                               <h2><a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
+                                       </header>
+                                       <section>
+                                               <p>{{ article.description }}</p>
+                                               {% if article.keywords is defined and article.keywords %}
+                                                       <nav>
+                                                               {% for keyword in article.keywords %}
+                                                                       <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
+                                                               {% endfor %}
+                                                       </nav>
+                                               {% endif %}
+                                       </section>
+                                       <footer>
+                                               <nav>
+                                                       <a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
+                                               </nav>
+                                       </footer>
+                               </article>
+                       {% endfor %}
+               </section>
+               {% if ( prev is defined and prev ) or ( next is defined and next ) %}
+                       <footer>
+                               <nav class="pager">
+                                       {% if prev is defined and prev %}
+                                               <a href="{{ prev }}" rel="prev">&lt; {% trans %}Previous articles{% endtrans %}</a>
+                                       {% endif %}
+                                       {% if next is defined and next %}
+                                               <a href="{{ next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
+                                       {% endif %}
+                               </nav>
+                       </footer>
+               {% endif %}
+       </section>
+{% endblock %}
similarity index 75%
rename from Resources/views/article/view.html.twig
rename to templates/article/view.html.twig
index 36a87a23e52f6e6aed61c1db3a065ae46cbebc99..565a72929019b55e1429852680cf60bf74d25f02 100644 (file)
@@ -1,9 +1,8 @@
 {% extends '@RapsysBlog/_base.html.twig' %}
-{% block title %}{% endblock %}
 {% block content %}
        <article id="content">
                <header>
-                       <h1 id="title"><a href="{{ head.canonical }}">{{ title }}</a></h1>
+                       <h1 id="title"><a href="{{ canonical }}">{{ title.page }}</a></h1>
                        <p>{% trans with {'%date%': article.created|format_datetime('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|format_datetime('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %}</p>
                </header>
                <section>
@@ -13,7 +12,7 @@
                        {% if article.keywords is defined and article.keywords %}
                                <nav>
                                        {% for keyword in article.keywords %}
-                                               <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
+                                               <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
                                        {% endfor %}
                                </nav>
                        {% endif %}
similarity index 92%
rename from Resources/views/form/contact.html.twig
rename to templates/form/contact.html.twig
index dbbf191a73c3dee9f54484903964ef5d99e208bd..ba332401674bbceb7c5b3e03bc6765e940e65697 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <section class="form">
                <header>
-                       <h1><a href="{{ head.canonical }}">{{ title }}</a></h1>
+                       <h1><a href="{{ canonical }}">{{ title.page }}</a></h1>
                        <p>{{ description }}</p>
                </header>
                <section>
similarity index 82%
rename from Resources/views/form/login.html.twig
rename to templates/form/login.html.twig
index 2d15c51cfdd07a5bb98686324d99b69163379f58..260e4184192ea08a083d1d645339c8d5a126b98b 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <section class="form">
                <header>
-                       <h2><a href="{{ path('rapsys_user_login') }}">{{ title }}</a></h2>
+                       <h2><a href="{{ path('rapsysuser_login') }}">{{ title.page }}</a></h2>
                </header>
                <section>
                        {{ form_start(login) }}
@@ -20,7 +20,7 @@
        {% if recover is defined %}
                <section class="form">
                        <header>
-                               <h2><a href="{{ path('rapsys_user_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
+                               <h2><a href="{{ path('rapsysuser_recover') }}">{% trans %}Recover{% endtrans %}</a></h2>
                        </header>
                        <section>
                                {{ form_start(recover) }}
similarity index 90%
rename from Resources/views/form/recover.html.twig
rename to templates/form/recover.html.twig
index fa484445e603d8f834fd1e979160cd42cb73c3db..2b18e69b71afde701b58ae9d3383d6941d448aa1 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <section class="form">
                <header>
-                       <h2><a href="{{ path('rapsys_user_recover') }}">{{ title }}</a></h2>
+                       <h2><a href="{{ path('rapsysuser_recover') }}">{{ title }}</a></h2>
                </header>
                <section>
                        {% if sent %}
similarity index 95%
rename from Resources/views/form/register.html.twig
rename to templates/form/register.html.twig
index 86080a64e1c83fcd1c3490fe4c56aa36b92fa9ee..ac89ff21dad1f493112c7029c516649b6a176bc0 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <section class="form">
                <header>
-                       <h2><a href="{{ path('rapsys_user_register') }}">{{ title }}</a></h2>
+                       <h2><a href="{{ path('rapsysuser_register') }}">{{ title }}</a></h2>
                </header>
                <section>
                        {% if disabled is defined and disabled %}
diff --git a/templates/index.html.twig b/templates/index.html.twig
new file mode 100644 (file)
index 0000000..14b74ff
--- /dev/null
@@ -0,0 +1,45 @@
+{% extends '@RapsysBlog/_base.html.twig' %}
+{% block content %}
+       <section id="content">
+               <header>
+                       <h1 id="title"><a href="{{ canonical }}">{{ title.page }}</a></h1>
+                       <p>{{ description }}</p>
+               </header>
+               <section>
+                       {% for article in articles %}
+                               <article>
+                                       <header>
+                                               <h2><a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
+                                       </header>
+                                       <section>
+                                               <p>{{ article.description }}</p>
+                                               {% if article.keywords is defined and article.keywords %}
+                                                       <nav>
+                                                               {% for keyword in article.keywords %}
+                                                                       <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
+                                                               {% endfor %}
+                                                       </nav>
+                                               {% endif %}
+                                       </section>
+                                       <footer>
+                                               <nav>
+                                                       <a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
+                                               </nav>
+                                       </footer>
+                               </article>
+                       {% endfor %}
+               </section>
+               {% if ( prev is defined and prev ) or ( next is defined and next ) %}
+                       <footer>
+                               <nav class="pager">
+                                       {% if prev is defined and prev %}
+                                               <a href="{{ prev }}" rel="prev">&lt; {% trans %}Previous articles{% endtrans %}</a>
+                                       {% endif %}
+                                       {% if next is defined and next %}
+                                               <a href="{{ next }}" rel="next">{% trans %}Next articles{% endtrans %} &gt;</a>
+                                       {% endif %}
+                               </nav>
+                       </footer>
+               {% endif %}
+       </section>
+{% endblock %}
diff --git a/templates/keyword/index.html.twig b/templates/keyword/index.html.twig
new file mode 100644 (file)
index 0000000..1bc5904
--- /dev/null
@@ -0,0 +1,45 @@
+{% extends '@RapsysBlog/_base.html.twig' %}
+{% block content %}
+       <section id="content">
+               <header>
+                       <h1><a href="{{ path('rapsysblog_keyword') }}">{{ title.page }}</a></h1>
+                       <p>{{ description }}</p>
+               </header>
+               <section>
+                       {% for keyword in keywords %}
+                               <article>
+                                       <header>
+                                               <h2><a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a></h2>
+                                       </header>
+                                       <section>
+                                               <p>{{ keyword.description }}</p>
+                                               {#{% if article.keywords is defined and article.keywords %}
+                                                       <nav>
+                                                               {% for keyword in article.keywords %}
+                                                                       <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
+                                                               {% endfor %}
+                                                       </nav>
+                                               {% endif %}#}
+                                       </section>
+                                       <footer>
+                                               <nav>
+                                                       <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
+                                               </nav>
+                                       </footer>
+                               </article>
+                       {% endfor %}
+               </section>
+               {% if ( prev is defined and prev ) or ( next is defined and next ) %}
+                       <footer>
+                               <nav class="pager">
+                                       {% if prev is defined and prev %}
+                                               <a href="{{ prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
+                                       {% endif %}
+                                       {% if next is defined and next %}
+                                               <a href="{{ next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
+                                       {% endif %}
+                               </nav>
+                       </footer>
+               {% endif %}
+       </section>
+{% endblock %}
similarity index 67%
rename from Resources/views/keyword/view.html.twig
rename to templates/keyword/view.html.twig
index 97c6c940b1e19205755fa12470224011290a0b6d..56a9a28045bead0de426341ba49183299b67384b 100644 (file)
@@ -1,9 +1,8 @@
 {% extends '@RapsysBlog/_base.html.twig' %}
-{% block title %}{% endblock %}
 {% block content %}
        <article id="content">
                <header>
-                       <h1 id="title"><a href="{{ head.canonical }}">{{ title }}</a></h1>
+                       <h1 id="title"><a href="{{ canonical }}">{{ title.page }}</a></h1>
                        <p>{% trans with {'%date%': keyword.created|format_datetime('full', 'short')} %}Published the %date%{% endtrans %}{% if keyword.created != keyword.updated %}{% trans with {'%date%': keyword.updated|format_datetime('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %}</p>
                        <p>{{ keyword.description }}</p>
                </header>
                                {% for article in keyword.articles %}
                                        <article>
                                                <header>
-                                                       <h2><a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
+                                                       <h2><a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
                                                </header>
                                                <section>
                                                        <p>{{ article.description }}</p>
                                                        {% if article.keywords is defined and article.keywords %}
                                                                <nav>
                                                                        {% for keyword in article.keywords %}
-                                                                               <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
+                                                                               <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
                                                                        {% endfor %}
                                                                </nav>
                                                        {% endif %}
                                                </section>
                                                <footer>
                                                        <nav>
-                                                               <a href="{{ path('rapsys_blog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
+                                                               <a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
                                                        </nav>
                                                </footer>
                                        </article>
similarity index 80%
rename from Resources/views/user/index.html.twig
rename to templates/user/index.html.twig
index e3049b9e86429cfc4d94c1d10266d2e3691461c8..8fc35b454dff407b8a894761e34926d560dfc486 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <section id="content">
                <header>
-                       <h1><a href="{{ path('rapsys_blog_user') }}">{{ title }}</a></h1>
+                       <h1><a href="{{ path('rapsysblog_user') }}">{{ title.page }}</a></h1>
                </header>
                <section>
                        {% for user in users %}
                                </article>
                        {% endfor %}
                </section>
-               {% if head.prev is defined or head.next is defined %}
+               {% if ( prev is defined and prev ) or ( next is defined and next ) %}
                        <footer>
                                <nav class="pager">
-                                       {% if head.prev is defined %}
-                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous users{% endtrans %}</a>
+                                       {% if prev is defined and prev %}
+                                               <a href="{{ prev }}" rel="prev">&lt; {% trans %}Previous users{% endtrans %}</a>
                                        {% endif %}
-                                       {% if head.next is defined %}
-                                               <a href="{{ head.next }}" rel="next">{% trans %}Next users{% endtrans %} &gt;</a>
+                                       {% if next is defined and next %}
+                                               <a href="{{ next }}" rel="next">{% trans %}Next users{% endtrans %} &gt;</a>
                                        {% endif %}
                                </nav>
                        </footer>