]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/keyword/index.html.twig
Update config
[blogbundle] / Resources / views / keyword / index.html.twig
1 {% extends 'RapsysBlogBundle::body.html.twig' %}
2 {% block blog_title %}<h1><a href="{{ path('homepage') }}">{% trans %}Dev log{% endtrans %}</a></h1>{% endblock %}
3 {% block content %}
4 <section id="content">
5 <h2><a href="{{ path('keywords') }}">{% trans %}Keywords list{% endtrans %}</a></h2>
6 {% for keyword in keywords %}
7 <article>
8 <header>
9 <h3><a href="{{ path('keywords_keyword', {'_keyword': keyword.slug}) }}">{{keyword.title}}</a></h3>
10 <p>
11 <span>{% 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 %}</span>
12 </p>
13 </header>
14 {% if keyword.articles %}
15 <p style="margin-bottom: 0">{% transchoice keyword.articles|length %}{1} Article:|]1,Inf[ Articles:{% endtranschoice %}</p>
16 <ul>
17 {% for slug, article in keyword.articles %}
18 <li><a href="{{ path('articles_article', {'_article': slug}) }}">{{ article }}</a></li>
19 {% endfor %}
20 </ul>
21 {% endif %}
22 <nav>
23 <a href="{{ path('keywords_keyword', {'_keyword': keyword.slug}) }}">{% trans %}Read more{% endtrans %}...</a>
24 </nav>
25 </article>
26 {% endfor %}
27 </section>
28 {% endblock %}