From a4885d23b6a68ca960d3a95057b4b27710340312 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 12 Dec 2023 18:52:10 +0100 Subject: [PATCH 1/1] Add user view --- Resources/views/user/view.html.twig | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Resources/views/user/view.html.twig diff --git a/Resources/views/user/view.html.twig b/Resources/views/user/view.html.twig new file mode 100644 index 0000000..d3affed --- /dev/null +++ b/Resources/views/user/view.html.twig @@ -0,0 +1,42 @@ +{% extends '@RapsysBlog/_base.html.twig' %} +{% block content %} +
+
+

{{ 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 %} + +
+{% endblock %} -- 2.41.1