From 2284de409a84ff12c0ceb231609ef422b710149d Mon Sep 17 00:00:00 2001 From: Maxime Cousinou Date: Tue, 25 Jun 2019 18:43:18 +0200 Subject: [PATCH] add Edit Profile link --- templates/contents/user/user--profile.html.twig | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/contents/user/user--profile.html.twig b/templates/contents/user/user--profile.html.twig index 3a1dee7e..823db991 100644 --- a/templates/contents/user/user--profile.html.twig +++ b/templates/contents/user/user--profile.html.twig @@ -20,9 +20,15 @@ {% endif %} -
- {{ 'pages.user.profile.contact'|trans }} -
+ {% if app.user == user %} +
+ {{ 'pages.user.profile_edit.link'|trans }} +
+ {% else %} +
+ {{ 'pages.user.profile.contact'|trans }} +
+ {% endif %}
{{ user.presentation }}