Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
519:f72ace06658a | 520:e94570675664 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load accounts_tags %} | |
3 {% load cache %} | 4 {% load cache %} |
4 {% load forum_tags %} | 5 {% load forum_tags %} |
5 {% load core_tags %} | 6 {% load core_tags %} |
6 {% block custom_head %} | 7 {% block custom_head %} |
7 {% for feed in feeds %} | 8 {% for feed in feeds %} |
47 {% endfor %} | 48 {% endfor %} |
48 <form action="{% url 'forums-catchup_all' %}" method="post">{% csrf_token %} | 49 <form action="{% url 'forums-catchup_all' %}" method="post">{% csrf_token %} |
49 <input type="submit" value="Mark All Forums Read" /> | 50 <input type="submit" value="Mark All Forums Read" /> |
50 </form> | 51 </form> |
51 <br /> | 52 <br /> |
53 {% user_stats %} | |
52 {% cache 900 forum-stats-block %} | 54 {% cache 900 forum-stats-block %} |
53 {% forum_stats %} | 55 {% forum_stats %} |
56 {% endcache %} | |
57 {% cache 900 max-users-block %} | |
58 {% max_users %} | |
54 {% endcache %} | 59 {% endcache %} |
55 {% whos_online %} | 60 {% whos_online %} |
56 <p>{% current_forum_time user %}</p> | 61 <p>{% current_forum_time user %}</p> |
57 </div> | 62 </div> |
58 {% endblock %} | 63 {% endblock %} |