From: Raphaƫl Gertz Date: Tue, 12 Dec 2023 17:06:41 +0000 (+0100) Subject: Add user index template X-Git-Tag: 0.2~16 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/fd5db167122dd83c920960df9d91716bd4f86d51 Add user index template --- diff --git a/Resources/views/user/index.html.twig b/Resources/views/user/index.html.twig new file mode 100644 index 0000000..e3049b9 --- /dev/null +++ b/Resources/views/user/index.html.twig @@ -0,0 +1,63 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ title }}

+
+
+ {% for user in users %} +
+
+

{{ user.forename }} {{ user.surname }} ({{ user.pseudonym }}){% if is_granted('ROLE_ADMIN') %} <{{ user.mail }}>{% endif %}

+
+ {% if user.articles is defined and user.articles %} +
+ {% for article in user.articles %} +
+
+

{{ article.title }}

+
+
+

{{ article.description }}

+ {% if article.keywords is defined and article.keywords %} + + {% endif %} +
+
+ + {% endfor %} +
+ {% endif %} + +
+ {% endfor %} +
+ {% if head.prev is defined or head.next is defined %} + + {% endif %} +
+{% endblock %}