Mercurial > public > sg101
diff gpp/templates/forums/index.html @ 520:e94570675664
Created stats for users (number of users and list of newest users).
Better separated the forums, who's online, and user stats.
Use a Celery task to execute the new user stats processing.
This addresses #194 and #238.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 17 Dec 2011 23:19:15 +0000 |
parents | a1b03de20345 |
children | 82b97697312e |
line wrap: on
line diff
--- a/gpp/templates/forums/index.html Sat Dec 17 19:29:24 2011 +0000 +++ b/gpp/templates/forums/index.html Sat Dec 17 23:19:15 2011 +0000 @@ -1,5 +1,6 @@ {% extends 'base.html' %} {% load url from future %} +{% load accounts_tags %} {% load cache %} {% load forum_tags %} {% load core_tags %} @@ -49,8 +50,12 @@ <input type="submit" value="Mark All Forums Read" /> </form> <br /> +{% user_stats %} {% cache 900 forum-stats-block %} -{% forum_stats %} + {% forum_stats %} +{% endcache %} +{% cache 900 max-users-block %} + {% max_users %} {% endcache %} {% whos_online %} <p>{% current_forum_time user %}</p>