From cb64fdd2ba11b6ddbc14d3d752a33ec4be562abe Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Tue, 27 Sep 2016 16:26:40 +0200 Subject: [PATCH] contacts: display user roles in contact zone (#12630) --- .../contacts/contact_detail_fragment.html | 17 +++++++++-------- welco/contacts/views.py | 4 +++- welco/static/css/style.css | 5 +++++ welco/static/js/welco.js | 3 +++ 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/welco/contacts/templates/contacts/contact_detail_fragment.html b/welco/contacts/templates/contacts/contact_detail_fragment.html index 8451907..acb1594 100644 --- a/welco/contacts/templates/contacts/contact_detail_fragment.html +++ b/welco/contacts/templates/contacts/contact_detail_fragment.html @@ -2,16 +2,17 @@

{{user_display_name}}

+{% if user_roles %} +

{% for role in user_roles %}{{ role.text }}{% if not forloop.last %} / {% endif %}{% endfor %}

+{% endif %} + {% if forms %}