From c14775c638735fd719a97f53cb119ccea37f2ba4 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 1 Aug 2013 12:19:12 +0200 Subject: Use the user_id as key to avoid exposing the email address --- hyperkitty/templates/messages/message.html | 14 +++++++++----- hyperkitty/templates/user_public_profile.html | 8 ++------ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'hyperkitty/templates') 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 %}
- {{email.sender_name|escapeemail}} + + {% if email.user_id %} + {{email.sender_name|escapeemail}} + {% else %} + {{email.sender_name|escapeemail}} + {% endif %} +
(permalink) {% if use_mockups %} -
Rank 8 diff --git a/hyperkitty/templates/user_public_profile.html b/hyperkitty/templates/user_public_profile.html index b62002d..0e4f7af 100644 --- a/hyperkitty/templates/user_public_profile.html +++ b/hyperkitty/templates/user_public_profile.html @@ -6,14 +6,14 @@ {% block title %} -{% trans 'User Profile' %} for {{ email }} - {{ app_name|title }} +{% trans 'User Profile' %} for {{ fullname }} - {{ app_name|title }} {% endblock %} {% block content %}
-

User profile for {{ email }}

+

User profile for {{ fullname }}

@@ -21,10 +21,6 @@ - - - - {% if creation %} -- cgit
{% trans 'Name:' %} {{ fullname }}
{% trans 'Email:' %}{{ email }}
{% trans 'Creation:' %}