diff --git a/website/templates/report.html b/website/templates/report.html index 0180bd4e3..32e550d8b 100644 --- a/website/templates/report.html +++ b/website/templates/report.html @@ -103,23 +103,34 @@

Latest Issues

-
- -
- +
+
+ +
+ +
+
+ +
+ {% for domain in top_domains %} + {{ domain.domain__name }} + {% endfor %}
@@ -129,6 +140,14 @@

Latest Issues

+ + +
diff --git a/website/views.py b/website/views.py index a4708b6d4..99bed06a5 100644 --- a/website/views.py +++ b/website/views.py @@ -784,6 +784,7 @@ def get_context_data(self, **kwargs): context["hunts"] = Hunt.objects.values("id","name").filter(is_published=True,result_published=False) context["report_on_hunt"] = False + context['top_domains'] = Issue.objects.values("domain__name").annotate(count=Count('domain__name')).order_by("-count")[:30] return context