diff --git a/website/templates/profile.html b/website/templates/profile.html index 99239adad..5815d7513 100644 --- a/website/templates/profile.html +++ b/website/templates/profile.html @@ -69,6 +69,9 @@ display: none; width: 200px; } +.general{ + color:white; +} .fa-exclamation-triangle { color: #ff4444; } @@ -132,6 +135,9 @@

{{ user.username }}

Total bugs reported: {{ activities | length }}

+ + General {{ bug_type_0 | length }} + Number {{ bug_type_1 | length }} diff --git a/website/views.py b/website/views.py index 666a5ad3a..2d0fce25c 100644 --- a/website/views.py +++ b/website/views.py @@ -352,7 +352,7 @@ def get_context_data(self, **kwargs): context['current_month'] = datetime.now().month context['graph'] = Issue.objects.filter(user=self.object).filter(created__month__gte=(datetime.now().month-6), created__month__lte=datetime.now().month) \ .annotate(month=ExtractMonth('created')).values('month').annotate(c=Count('id')).order_by() - for i in range(1,7): + for i in range(0,7): context['bug_type_'+str(i)] = Issue.objects.filter(user=self.object,label=str(i)) return context