add contact button on user details page

This commit is contained in:
Élie Bouttier 2016-09-14 22:46:54 +02:00
parent a96a44f029
commit 4a9beaec40
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@
<h1>{{ profile }}</h1>
{% if request|staff %}
<a href="{% url 'conversation' profile.user.username %}" class="btn btn-primary ">{% trans "Contact" %}</a>
{% endif %}
{% if request|edit_profile:profile %}
<a href="{% url 'edit-participant' profile.user.username %}" class="btn btn-success">{% trans "Edit" %}</a>
{% endif %}