diff --git a/website/templates/stats.html b/website/templates/stats.html index 497692de9..8d6bece9d 100644 --- a/website/templates/stats.html +++ b/website/templates/stats.html @@ -1,6 +1,8 @@ {% extends "base.html" %} +{% load staticfiles %} {% block content %} +

Stats

@@ -78,4 +80,78 @@

{{extension_users}} Extension users

+
+
+ +
+
+
+ + {% endblock %} \ No newline at end of file diff --git a/website/views.py b/website/views.py index 96110da0f..8977abb52 100644 --- a/website/views.py +++ b/website/views.py @@ -407,6 +407,7 @@ def get_context_data(self, *args, **kwargs): context['user_count'] = User.objects.all().count() context['hunt_count'] = Hunt.objects.all().count() context['domain_count'] = Domain.objects.all().count() + context['graph']= Issue.objects.annotate(month=ExtractMonth('created')).annotate(c=Count('id')).order_by() return context