]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/keyword/index.html.twig
b1a6ce4c6a8b2c6fe25a52019830e48bceeac802
[blogbundle] / Resources / views / keyword / index.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <section id="content">
4 <header>
5 <h1><a href="{{ path('rapsys_blog_keyword') }}">{{ title }}</a></h1>
6 <p>{{ description }}</p>
7 </header>
8 <section>
9 {% for keyword in keywords %}
10 <article>
11 <header>
12 <h2><a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a></h2>
13 </header>
14 <section>
15 <p>{{ keyword.description }}</p>
16 {#{% if article.keywords is defined and article.keywords %}
17 <nav>
18 {% for keyword in article.keywords %}
19 <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{{ keyword.title }}</a>
20 {% endfor %}
21 </nav>
22 {% endif %}#}
23 </section>
24 <footer>
25 <nav>
26 <a href="{{ path('rapsys_blog_keyword_view', {'id': keyword.id, 'slug': keyword.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
27 </nav>
28 </footer>
29 </article>
30 {% endfor %}
31 </section>
32 {% if keywords_prev is defined or keywords_next is defined %}
33 <footer>
34 <nav class="pager">
35 {% if keywords_prev is defined %}
36 <a href="{{ keywords_prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
37 {% endif %}
38 {% if keywords_next is defined %}
39 <a href="{{ keywords_next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
40 {% endif %}
41 </nav>
42 </footer>
43 {% endif %}
44 </section>
45 {% endblock %}