]> git.openstreetmap.org Git - osqa.git/blob - forum_modules/stats/views.py
Updated stats module
[osqa.git] / forum_modules / stats / views.py
1 from django.http import HttpResponse
2 from django.utils.translation import ugettext as _
3
4 from base import check_for_updates
5
6 from forum.views.admin import admin_tools_page, admin_page
7
8 @admin_tools_page(_('stats'), _('Stats Module'))
9 def stats_index(request):
10     return (
11         'modules/stats/index.html',
12         {
13
14         },
15     )
16
17 def stats_check(request):
18     update_status = check_for_updates()
19
20     return HttpResponse(update_status, mimetype='text/html')