]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/user/index.html.twig
Indent form properly
[blogbundle] / Resources / views / user / 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_user') }}">{{ title }}</a></h1>
6 </header>
7 <section>
8 {% for user in users %}
9 <article>
10 <header>
11 <h2><a href="{{ user.link }}">{{ user.forename }} {{ user.surname }} ({{ user.pseudonym }}){% if is_granted('ROLE_ADMIN') %} &lt;{{ user.mail }}&gt;{% endif %}</a></h2>
12 </header>
13 {% if user.articles is defined and user.articles %}
14 <section>
15 {% for article in user.articles %}
16 <article>
17 <header>
18 <h3><a href="{{ article.link }}">{{ article.title }}</a></h3>
19 </header>
20 <section>
21 <p>{{ article.description }}</p>
22 {% if article.keywords is defined and article.keywords %}
23 <nav>
24 {% for keyword in article.keywords %}
25 <a href="{{ keyword.link }}">{{ keyword.title }}</a>
26 {% endfor %}
27 </nav>
28 {% endif %}
29 </section>
30 </article>
31 <footer>
32 <nav>
33 <a href="{{ article.link }}">{% trans %}Read more{% endtrans %}...</a>
34 </nav>
35 </footer>
36 {% endfor %}
37 </section>
38 {% endif %}
39 <footer>
40 <nav>
41 {% if is_granted('ROLE_ADMIN') %}
42 <a href="{{ user.edit }}">{% trans %}Edit{% endtrans %}</a>
43 {% endif %}
44 <a href="{{ user.link }}">{% trans %}Read more{% endtrans %}...</a>
45 </nav>
46 </footer>
47 </article>
48 {% endfor %}
49 </section>
50 {% if head.prev is defined or head.next is defined %}
51 <footer>
52 <nav class="pager">
53 {% if head.prev is defined %}
54 <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous users{% endtrans %}</a>
55 {% endif %}
56 {% if head.next is defined %}
57 <a href="{{ head.next }}" rel="next">{% trans %}Next users{% endtrans %} &gt;</a>
58 {% endif %}
59 </nav>
60 </footer>
61 {% endif %}
62 </section>
63 {% endblock %}