]> git.parisson.com Git - mezzo.git/commitdiff
Fix person email display (fix #395)
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 14 Nov 2016 14:46:12 +0000 (15:46 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 14 Nov 2016 14:46:12 +0000 (15:46 +0100)
app/templates/network/person_detail.html

index 84928c8e1db3b0199673b4dc9be53064791c46ac..2623982a5fb4d4eb5872af365d75656ca09ed4f4 100644 (file)
@@ -31,7 +31,7 @@
         {{ person.bio|richtext_filters|safe }}
     {% endeditable %}
 
-    <p><strong>{% trans 'Email' %} :</strong> {% if not person.email %}{{ person_email }}{% else %}{{ person.email|unspam }}{% endif %}</p>
+    {% if not person.email and person.activities.all and person.teams %}<p><strong>{% trans 'Email' %} :</strong> {{ person_email }}</p>{% elif person.email %}<p><strong>{% trans 'Email' %} :</strong> {{ person.email|unspam }}</p>{% endif %}
 
     {% with person.activities.all as activities %}
       {% if activities %}