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