From: Raphaƫl Gertz Date: Tue, 12 Dec 2023 17:52:10 +0000 (+0100) Subject: Add user view X-Git-Tag: 0.2 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/refs/tags/0.2 Add user view --- 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 %}