From: Raphaƫl Gertz Date: Fri, 10 Nov 2023 12:17:32 +0000 (+0100) Subject: Update index templates X-Git-Tag: 0.1~15 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/a4327fe8283484cae72cce64c682801da33cb6c0 Update index templates --- 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 %}