# HG changeset patch # User Brian Neal # Date 1324165380 0 # Node ID dd14ab08a9c413315ba0af9b76485f09211ba2da # Parent e945706756641534dea504407ac1362f79749346 Use a case-insensitive sort for the who's online list. Clarify the max users statistic wording. diff -r e94570675664 -r dd14ab08a9c4 gpp/core/templatetags/core_tags.py --- a/gpp/core/templatetags/core_tags.py Sat Dec 17 23:19:15 2011 +0000 +++ b/gpp/core/templatetags/core_tags.py Sat Dec 17 23:43:00 2011 +0000 @@ -53,11 +53,13 @@ """ users = get_users_online() + users.sort(key=str.lower) + visitors = get_visitors_online() return { 'num_users': len(users), - 'users': sorted(users), + 'users': users, 'num_guests': len(visitors), 'total': len(users) + len(visitors), } diff -r e94570675664 -r dd14ab08a9c4 gpp/templates/core/max_users_tag.html --- a/gpp/templates/core/max_users_tag.html Sat Dec 17 23:19:15 2011 +0000 +++ b/gpp/templates/core/max_users_tag.html Sat Dec 17 23:43:00 2011 +0000 @@ -1,5 +1,5 @@
{% if stats %} -The most users ever online was {{ stats.max_users }} on {{ stats.max_users_date|date:"P l, N d, Y" }}.
+The most registered users ever online was {{ stats.max_users }} on {{ stats.max_users_date|date:"P l, N d, Y" }}.
{% endif %}