diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2014-01-06 18:31:18 +0100 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2014-01-06 18:31:42 +0100 |
commit | 2435de842cf53a54d4b97bb578c0ac9936e9b7b7 (patch) | |
tree | a86b7710a07b7827e55eefe809c731460a1546c9 | |
parent | 85cd657e78f5e07fc914a04e0be3de16ce6d144b (diff) | |
download | hyperkitty-2435de842cf53a54d4b97bb578c0ac9936e9b7b7.tar.gz hyperkitty-2435de842cf53a54d4b97bb578c0ac9936e9b7b7.tar.xz hyperkitty-2435de842cf53a54d4b97bb578c0ac9936e9b7b7.zip |
Participants are now Sender entities
-rw-r--r-- | hyperkitty/templates/threads/right_col.html | 6 | ||||
-rw-r--r-- | hyperkitty/views/thread.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html index a9b5b38..fee124f 100644 --- a/hyperkitty/templates/threads/right_col.html +++ b/hyperkitty/templates/threads/right_col.html @@ -61,10 +61,10 @@ <div id="participants"> <span id="participants_title">participants</span> ({{participants|length}}) <ul> - {% for name, email in participants %} + {% for participant in participants %} <li> - {% gravatar email 20 %} - {{ name|escapeemail }} + {% gravatar participant.email 20 %} + {{ participant.name|escapeemail }} </li> {% endfor %} </ul> diff --git a/hyperkitty/views/thread.py b/hyperkitty/views/thread.py index cc1c201..8e1b0ff 100644 --- a/hyperkitty/views/thread.py +++ b/hyperkitty/views/thread.py @@ -172,7 +172,7 @@ def thread_index(request, mlist_fqdn, threadid, month=None, year=None): 'category': category, 'flash_messages': flash_messages, } - context["participants"].sort(key=lambda x: x[0].lower()) + context["participants"].sort(key=lambda p: p.name.lower()) if is_bot: # Don't rely on AJAX to load the replies |