]> Raphaƫl G. Git Repositories - blogbundle/blob - templates/keyword/view.html.twig
Update translations for new context layout
[blogbundle] / templates / keyword / view.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <article id="content">
4 <header>
5 <h1 id="title"><a href="{{ canonical }}">{{ title.page }}</a></h1>
6 <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>
7 <p>{{ keyword.description }}</p>
8 </header>
9 {% if keyword.articles is defined and keyword.articles %}
10 <section>
11 {% for article in keyword.articles %}
12 <article>
13 <header>
14 <h2><a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{{ article.title }}</a></h2>
15 </header>
16 <section>
17 <p>{{ article.description }}</p>
18 {% if article.keywords is defined and article.keywords %}
19 <nav>
20 {% for keyword in article.keywords %}
21 <a href="{{ path('rapsysblog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
22 {% endfor %}
23 </nav>
24 {% endif %}
25 </section>
26 <footer>
27 <nav>
28 <a href="{{ path('rapsysblog_article_view', {'id': article.id, 'slug': article.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
29 </nav>
30 </footer>
31 </article>
32 {% endfor %}
33 </section>
34 {% endif %}
35 </article>
36 {% endblock %}