diff options
Diffstat (limited to 'hyperkitty')
-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 |