+{% extends '@RapsysBlog/_base.html.twig' %}
+{% block content %}
+ <section id="content">
+ <header>
+ <h1><a href="{{ path('rapsys_blog_user') }}">{{ title }}</a></h1>
+ </header>
+ <section>
+ {% for user in users %}
+ <article>
+ <header>
+ <h2><a href="{{ user.link }}">{{ user.forename }} {{ user.surname }} ({{ user.pseudonym }}){% if is_granted('ROLE_ADMIN') %} <{{ user.mail }}>{% endif %}</a></h2>
+ </header>
+ {% if user.articles is defined and user.articles %}
+ <section>
+ {% for article in user.articles %}
+ <article>
+ <header>
+ <h3><a href="{{ article.link }}">{{ article.title }}</a></h3>
+ </header>
+ <section>
+ <p>{{ article.description }}</p>
+ {% if article.keywords is defined and article.keywords %}
+ <nav>
+ {% for keyword in article.keywords %}
+ <a href="{{ keyword.link }}">{{ keyword.title }}</a>
+ {% endfor %}
+ </nav>
+ {% endif %}
+ </section>
+ </article>
+ <footer>
+ <nav>
+ <a href="{{ article.link }}">{% trans %}Read more{% endtrans %}...</a>
+ </nav>
+ </footer>
+ {% endfor %}
+ </section>
+ {% endif %}
+ <footer>
+ <nav>
+ {% if is_granted('ROLE_ADMIN') %}
+ <a href="{{ user.edit }}">{% trans %}Edit{% endtrans %}</a>
+ {% endif %}
+ <a href="{{ user.link }}">{% trans %}Read more{% endtrans %}...</a>
+ </nav>
+ </footer>
+ </article>
+ {% endfor %}
+ </section>
+ {% if head.prev is defined or head.next is defined %}
+ <footer>
+ <nav class="pager">
+ {% if head.prev is defined %}
+ <a href="{{ head.prev }}" rel="prev">< {% trans %}Previous users{% endtrans %}</a>
+ {% endif %}
+ {% if head.next is defined %}
+ <a href="{{ head.next }}" rel="next">{% trans %}Next users{% endtrans %} ></a>
+ {% endif %}
+ </nav>
+ </footer>
+ {% endif %}
+ </section>
+{% endblock %}