changeset 521:dd14ab08a9c4

Use a case-insensitive sort for the who's online list. Clarify the max users statistic wording.
author Brian Neal <bgneal@gmail.com>
date Sat, 17 Dec 2011 23:43:00 +0000 (2011-12-17)
parents e94570675664
children 82b97697312e
files gpp/core/templatetags/core_tags.py gpp/templates/core/max_users_tag.html
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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),
     }
--- 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 @@
 <div id="max-users">
 {% if stats %}
-The most users ever online was <strong>{{ stats.max_users }}</strong> on {{ stats.max_users_date|date:"P l, N d, Y" }}.<br />
+The most registered users ever online was <strong>{{ stats.max_users }}</strong> on {{ stats.max_users_date|date:"P l, N d, Y" }}.<br />
 {% endif %}
 </div>