Skip to content

Commit

Permalink
add Edit Profile link
Browse files Browse the repository at this point in the history
  • Loading branch information
zemax committed Jun 25, 2019
1 parent 637d179 commit 2284de4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions templates/contents/user/user--profile.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@
{% endif %}
</div>
</div>
<div class="user-contact">
<a class="cta" href="mailto:{{ user.email }}" target="_blank">{{ 'pages.user.profile.contact'|trans }}</a>
</div>
{% if app.user == user %}
<div class="user-contact">
<a class="cta" href="{{ path('user_profile_edit') }}">{{ 'pages.user.profile_edit.link'|trans }}</a>
</div>
{% else %}
<div class="user-contact">
<a class="cta" href="mailto:{{ user.email }}" target="_blank">{{ 'pages.user.profile.contact'|trans }}</a>
</div>
{% endif %}
</div>

<div class="user--presentation">{{ user.presentation }}</div>
Expand Down

0 comments on commit 2284de4

Please sign in to comment.