From: Raphaƫl Gertz Date: Tue, 14 Oct 2025 09:46:45 +0000 (+0200) Subject: Rename rapsys_blog route to rapsysblog X-Git-Tag: 0.0.1~36 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/73d3287ce9876d651f4e02eae59ed196fab75192?ds=sidebyside Rename rapsys_blog route to rapsysblog Rename rapsys_user route to rapsysuser New context layout --- diff --git a/Resources/views/article/index.html.twig b/Resources/views/article/index.html.twig deleted file mode 100644 index 512e0fa..0000000 --- a/Resources/views/article/index.html.twig +++ /dev/null @@ -1,45 +0,0 @@ -{% extends '@RapsysBlog/_base.html.twig' %} -{% block content %} -
-
-

{{ title }}

-

{{ description }}

-
-
- {% for article in articles %} - - {% endfor %} -
- {% if head.prev is defined or head.next is defined %} - - {% endif %} -
-{% endblock %} diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig deleted file mode 100644 index 464fd8a..0000000 --- a/Resources/views/index.html.twig +++ /dev/null @@ -1,45 +0,0 @@ -{% extends '@RapsysBlog/_base.html.twig' %} -{% block content %} -
-
-

{{ title }}

-

{{ description }}

-
-
- {% for article in articles %} - - {% endfor %} -
- {% if head.prev is defined or head.next is defined %} - - {% endif %} -
-{% endblock %} diff --git a/Resources/views/keyword/index.html.twig b/Resources/views/keyword/index.html.twig deleted file mode 100644 index dae4b70..0000000 --- a/Resources/views/keyword/index.html.twig +++ /dev/null @@ -1,45 +0,0 @@ -{% extends '@RapsysBlog/_base.html.twig' %} -{% block content %} -
-
-

{{ title }}

-

{{ description }}

-
-
- {% for keyword in keywords %} - - {% endfor %} -
- {% if head.prev is defined or head.next is defined %} - - {% endif %} -
-{% endblock %} diff --git a/Resources/views/about.html.twig b/templates/about.html.twig similarity index 84% rename from Resources/views/about.html.twig rename to templates/about.html.twig index b5a5840..ab7b440 100644 --- a/Resources/views/about.html.twig +++ b/templates/about.html.twig @@ -2,7 +2,7 @@ {% block content %}
-

{{ title }}

+

{{ title.page }}

{{ description }}

diff --git a/templates/article/index.html.twig b/templates/article/index.html.twig new file mode 100644 index 0000000..c1a8aab --- /dev/null +++ b/templates/article/index.html.twig @@ -0,0 +1,45 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title.page }}

+

{{ description }}

+
+
+ {% for article in articles %} + + {% endfor %} +
+ {% if ( prev is defined and prev ) or ( next is defined and next ) %} + + {% endif %} +
+{% endblock %} diff --git a/Resources/views/article/view.html.twig b/templates/article/view.html.twig similarity index 75% rename from Resources/views/article/view.html.twig rename to templates/article/view.html.twig index 36a87a2..565a729 100644 --- a/Resources/views/article/view.html.twig +++ b/templates/article/view.html.twig @@ -1,9 +1,8 @@ {% extends '@RapsysBlog/_base.html.twig' %} -{% block title %}{% endblock %} {% block content %}
-

{{ title }}

+

{{ title.page }}

{% 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 %}

@@ -13,7 +12,7 @@ {% if article.keywords is defined and article.keywords %} {% endif %} diff --git a/Resources/views/form/contact.html.twig b/templates/form/contact.html.twig similarity index 92% rename from Resources/views/form/contact.html.twig rename to templates/form/contact.html.twig index dbbf191..ba33240 100644 --- a/Resources/views/form/contact.html.twig +++ b/templates/form/contact.html.twig @@ -2,7 +2,7 @@ {% block content %}
-

{{ title }}

+

{{ title.page }}

{{ description }}

diff --git a/Resources/views/form/edit.html.twig b/templates/form/edit.html.twig similarity index 100% rename from Resources/views/form/edit.html.twig rename to templates/form/edit.html.twig diff --git a/Resources/views/form/form_div_layout.html.twig b/templates/form/form_div_layout.html.twig similarity index 100% rename from Resources/views/form/form_div_layout.html.twig rename to templates/form/form_div_layout.html.twig diff --git a/Resources/views/form/login.html.twig b/templates/form/login.html.twig similarity index 82% rename from Resources/views/form/login.html.twig rename to templates/form/login.html.twig index 2d15c51..260e418 100644 --- a/Resources/views/form/login.html.twig +++ b/templates/form/login.html.twig @@ -2,7 +2,7 @@ {% block content %}
-

{{ title }}

+

{{ title.page }}

{{ form_start(login) }} @@ -20,7 +20,7 @@ {% if recover is defined %}
-

{% trans %}Recover{% endtrans %}

+

{% trans %}Recover{% endtrans %}

{{ form_start(recover) }} diff --git a/Resources/views/form/recover.html.twig b/templates/form/recover.html.twig similarity index 90% rename from Resources/views/form/recover.html.twig rename to templates/form/recover.html.twig index fa48444..2b18e69 100644 --- a/Resources/views/form/recover.html.twig +++ b/templates/form/recover.html.twig @@ -2,7 +2,7 @@ {% block content %}
-

{{ title }}

+

{{ title }}

{% if sent %} diff --git a/Resources/views/form/register.html.twig b/templates/form/register.html.twig similarity index 95% rename from Resources/views/form/register.html.twig rename to templates/form/register.html.twig index 86080a6..ac89ff2 100644 --- a/Resources/views/form/register.html.twig +++ b/templates/form/register.html.twig @@ -2,7 +2,7 @@ {% block content %}
-

{{ title }}

+

{{ title }}

{% if disabled is defined and disabled %} diff --git a/templates/index.html.twig b/templates/index.html.twig new file mode 100644 index 0000000..14b74ff --- /dev/null +++ b/templates/index.html.twig @@ -0,0 +1,45 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title.page }}

+

{{ description }}

+
+
+ {% for article in articles %} + + {% endfor %} +
+ {% if ( prev is defined and prev ) or ( next is defined and next ) %} + + {% endif %} +
+{% endblock %} diff --git a/templates/keyword/index.html.twig b/templates/keyword/index.html.twig new file mode 100644 index 0000000..1bc5904 --- /dev/null +++ b/templates/keyword/index.html.twig @@ -0,0 +1,45 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title.page }}

+

{{ description }}

+
+
+ {% for keyword in keywords %} + + {% endfor %} +
+ {% if ( prev is defined and prev ) or ( next is defined and next ) %} + + {% endif %} +
+{% endblock %} diff --git a/Resources/views/keyword/view.html.twig b/templates/keyword/view.html.twig similarity index 67% rename from Resources/views/keyword/view.html.twig rename to templates/keyword/view.html.twig index 97c6c94..56a9a28 100644 --- a/Resources/views/keyword/view.html.twig +++ b/templates/keyword/view.html.twig @@ -1,9 +1,8 @@ {% extends '@RapsysBlog/_base.html.twig' %} -{% block title %}{% endblock %} {% block content %}
-

{{ title }}

+

{{ title.page }}

{% 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 %}

{{ keyword.description }}

@@ -12,21 +11,21 @@ {% for article in keyword.articles %} diff --git a/Resources/views/mail/_base.html.twig b/templates/mail/_base.html.twig similarity index 100% rename from Resources/views/mail/_base.html.twig rename to templates/mail/_base.html.twig diff --git a/Resources/views/mail/contact.html.twig b/templates/mail/contact.html.twig similarity index 100% rename from Resources/views/mail/contact.html.twig rename to templates/mail/contact.html.twig diff --git a/Resources/views/mail/contact.text.twig b/templates/mail/contact.text.twig similarity index 100% rename from Resources/views/mail/contact.text.twig rename to templates/mail/contact.text.twig diff --git a/Resources/views/mail/recover.html.twig b/templates/mail/recover.html.twig similarity index 100% rename from Resources/views/mail/recover.html.twig rename to templates/mail/recover.html.twig diff --git a/Resources/views/mail/recover.text.twig b/templates/mail/recover.text.twig similarity index 100% rename from Resources/views/mail/recover.text.twig rename to templates/mail/recover.text.twig diff --git a/Resources/views/mail/register.html.twig b/templates/mail/register.html.twig similarity index 100% rename from Resources/views/mail/register.html.twig rename to templates/mail/register.html.twig diff --git a/Resources/views/mail/register.text.twig b/templates/mail/register.text.twig similarity index 100% rename from Resources/views/mail/register.text.twig rename to templates/mail/register.text.twig diff --git a/Resources/views/page/about.html.twig b/templates/page/about.html.twig similarity index 100% rename from Resources/views/page/about.html.twig rename to templates/page/about.html.twig diff --git a/Resources/views/user/index.html.twig b/templates/user/index.html.twig similarity index 80% rename from Resources/views/user/index.html.twig rename to templates/user/index.html.twig index e3049b9..8fc35b4 100644 --- a/Resources/views/user/index.html.twig +++ b/templates/user/index.html.twig @@ -2,7 +2,7 @@ {% block content %}
-

{{ title }}

+

{{ title.page }}

{% for user in users %} @@ -47,14 +47,14 @@
{% endfor %}
- {% if head.prev is defined or head.next is defined %} + {% if ( prev is defined and prev ) or ( next is defined and next ) %} diff --git a/Resources/views/user/view.html.twig b/templates/user/view.html.twig similarity index 100% rename from Resources/views/user/view.html.twig rename to templates/user/view.html.twig