From a4327fe8283484cae72cce64c682801da33cb6c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 10 Nov 2023 13:17:32 +0100 Subject: [PATCH] Update index templates --- Resources/views/article/index.html.twig | 66 +++++++++++++++---------- Resources/views/index.html.twig | 65 +++++++++++++++--------- Resources/views/keyword/index.html.twig | 63 ++++++++++++++--------- 3 files changed, 122 insertions(+), 72 deletions(-) diff --git a/Resources/views/article/index.html.twig b/Resources/views/article/index.html.twig index 817a4e0..3f0abf6 100644 --- a/Resources/views/article/index.html.twig +++ b/Resources/views/article/index.html.twig @@ -1,29 +1,45 @@ -{% extends 'RapsysBlogBundle::body.html.twig' %} -{% block blog_title %}

{% trans %}Dev log{% endtrans %}

{% endblock %} +{% extends '@RapsysBlog/_base.html.twig' %} {% block content %} -
-

{% trans %}Articles list{% endtrans %}

- {% for article in articles %} -
+
-

{{article.title}}

-

- {% trans with {'%date%': article.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %} - {% if article.keywords %} - - {% transchoice article.keywords|length %}{1} Keyword:|]1,Inf[ Keywords:{% endtranschoice %} - {% for slug, keyword in article.keywords %} - {{ keyword }} - {% endfor %} - - {% endif %} -

+

{{ title }}

+

{{ description }}

-

{{article.description}}

- -
- {% endfor %} -
+
+ {% for article in articles %} + + {% endfor %} +
+ {% if articles_prev is defined or articles_next is defined %} + + {% endif %} + {% endblock %} diff --git a/Resources/views/index.html.twig b/Resources/views/index.html.twig index 0036a4e..04c49e4 100644 --- a/Resources/views/index.html.twig +++ b/Resources/views/index.html.twig @@ -1,28 +1,45 @@ -{% extends 'RapsysBlogBundle::body.html.twig' %} +{% extends '@RapsysBlog/_base.html.twig' %} {% block content %} -
-

{% trans %}Articles list{% endtrans %}

- {% for article in articles %} -
+
-

{{article.title}}

-

- {% trans with {'%date%': article.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if article.created != article.updated %}{% trans with {'%date%': article.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %} - {% if article.keywords %} - - {% transchoice article.keywords|length %}{1} Keyword:|]1,Inf[ Keywords:{% endtranschoice %} - {% for slug, keyword in article.keywords %} - {{ keyword }} - {% endfor %} - - {% endif %} -

+

{{ title }}

+

{{ description }}

-

{{article.description}}

- -
- {% endfor %} -
+
+ {% for article in articles %} + + {% endfor %} +
+ {% if articles_prev is defined or articles_next is defined %} + + {% endif %} + {% endblock %} diff --git a/Resources/views/keyword/index.html.twig b/Resources/views/keyword/index.html.twig index 9860b9c..b1a6ce4 100644 --- a/Resources/views/keyword/index.html.twig +++ b/Resources/views/keyword/index.html.twig @@ -1,28 +1,45 @@ -{% extends 'RapsysBlogBundle::body.html.twig' %} -{% block blog_title %}

{% trans %}Dev log{% endtrans %}

{% endblock %} +{% extends '@RapsysBlog/_base.html.twig' %} {% block content %} -
-

{% trans %}Keywords list{% endtrans %}

- {% for keyword in keywords %} -
+
-

{{keyword.title}}

-

- {% trans with {'%date%': keyword.created|localizeddate('full', 'short')} %}Published the %date%{% endtrans %}{% if keyword.created != keyword.updated %}{% trans with {'%date%': keyword.updated|localizeddate('short', 'short')} %}, edited the %date%{% endtrans %}{% endif %} -

+

{{ title }}

+

{{ description }}

- {% if keyword.articles %} -

{% transchoice keyword.articles|length %}{1} Article:|]1,Inf[ Articles:{% endtranschoice %}

-
    - {% for slug, article in keyword.articles %} -
  • {{ article }}
  • - {% endfor %} -
+
+ {% for keyword in keywords %} + + {% endfor %} +
+ {% if keywords_prev is defined or keywords_next is defined %} + {% endif %} - -
- {% endfor %} -
+ {% endblock %} -- 2.41.0