summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/messages
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-08-01 12:19:12 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-08-02 10:54:23 +0200
commitc14775c638735fd719a97f53cb119ccea37f2ba4 (patch)
treed04dd662b78ff9d51e3fd16428edee42a8914306 /hyperkitty/templates/messages
parenta5d7239c7a2be95816716997a8bbee7463a734ad (diff)
downloadhyperkitty-c14775c638735fd719a97f53cb119ccea37f2ba4.tar.gz
hyperkitty-c14775c638735fd719a97f53cb119ccea37f2ba4.tar.xz
hyperkitty-c14775c638735fd719a97f53cb119ccea37f2ba4.zip
Use the user_id as key to avoid exposing the email address
Diffstat (limited to 'hyperkitty/templates/messages')
-rw-r--r--hyperkitty/templates/messages/message.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html
index 7140d75..23fa458 100644
--- a/hyperkitty/templates/messages/message.html
+++ b/hyperkitty/templates/messages/message.html
@@ -27,17 +27,21 @@
{% gravatar email.sender_email 40 %}
</div>
<div class="email-author inline-block">
- <span class="name"><a
- href="{% url 'public_user_profile' email=email.sender_email %}"
- title="See {{ email.sender_name|escapeemail|escape }}'s profile"
- >{{email.sender_name|escapeemail}}</a></span>
+ <span class="name">
+ {% if email.user_id %}
+ <a href="{% url 'public_user_profile' user_id=email.user_id %}"
+ title="See {{ email.sender_name|escapeemail|escape }}'s profile"
+ >{{email.sender_name|escapeemail}}</a>
+ {% else %}
+ {{email.sender_name|escapeemail}}
+ {% endif %}
+ </span>
<br />
<span class="messagelink">
(<a href="{% url 'message_index' mlist_fqdn=mlist.name message_id_hash=email.message_id_hash %}"
title="{{ email.subject }}">permalink</a>)
</span>
{% if use_mockups %}
- <br />
<span class="rank">
Rank 8
</span>