]> Raphaƫl G. Git Repositories - blogbundle/blob - Resources/views/user/view.html.twig
Add doctrine dbal default charset and collate parameters
[blogbundle] / Resources / views / user / view.html.twig
1 {% extends '@RapsysBlog/_base.html.twig' %}
2 {% block content %}
3 <article id="content">
4 <header>
5 <h1><a href="{{ user.link }}">{{ user.forename }} {{ user.surname }} ({{ user.pseudonym }}){% if is_granted('ROLE_ADMIN') %} &lt;{{ user.mail }}&gt;{% endif %}</a></h1>
6 </header>
7 {% if user.articles is defined and user.articles %}
8 <section>
9 {% for article in user.articles %}
10 <article>
11 <header>
12 <h3><a href="{{ article.link }}">{{ article.title }}</a></h3>
13 </header>
14 <section>
15 <p>{{ article.description }}</p>
16 {% if article.keywords is defined and article.keywords %}
17 <nav>
18 {% for keyword in article.keywords %}
19 <a href="{{ keyword.link }}">{{ keyword.title }}</a>
20 {% endfor %}
21 </nav>
22 {% endif %}
23 </section>
24 </article>
25 <footer>
26 <nav>
27 <a href="{{ article.link }}">{% trans %}Read more{% endtrans %}...</a>
28 </nav>
29 </footer>
30 {% endfor %}
31 </section>
32 {% endif %}
33 <footer>
34 <nav>
35 {% if is_granted('ROLE_ADMIN') %}
36 <a href="{{ user.edit }}">{% trans %}Edit{% endtrans %}</a>
37 {% endif %}
38 <a href="{{ user.link }}">{% trans %}Read more{% endtrans %}...</a>
39 </nav>
40 </footer>
41 </article>
42 {% endblock %}