diff --git a/src/apps/pages/views.py b/src/apps/pages/views.py index 971909972..971bfb486 100644 --- a/src/apps/pages/views.py +++ b/src/apps/pages/views.py @@ -23,7 +23,6 @@ def get_context_data(self, *args, **kwargs): total_competitions = data['count'] public_competitions = data['published_comps'] - private_competitions = data['unpublished_comps'] users = User.objects.all().count() competition_participants = CompetitionParticipant.objects.all().count() submissions = Submission.objects.all().count() @@ -31,7 +30,6 @@ def get_context_data(self, *args, **kwargs): context['general_stats'] = [ {'label': "Total Competitions", 'count': total_competitions}, {'label': "Public Competitions", 'count': public_competitions}, - {'label': "Private Competitions", 'count': private_competitions}, {'label': "Users", 'count': users}, {'label': "Competition Participants", 'count': competition_participants}, {'label': "Submissions", 'count': submissions}, diff --git a/src/static/stylus/home.styl b/src/static/stylus/home.styl index 0836d4bc8..5a0675e6c 100644 --- a/src/static/stylus/home.styl +++ b/src/static/stylus/home.styl @@ -105,6 +105,8 @@ body .ui.statistic flex 1 1 auto + text-align: center + width: 100% .value font-weight 800 diff --git a/src/templates/pages/home.html b/src/templates/pages/home.html index a6d70e36d..12c322157 100644 --- a/src/templates/pages/home.html +++ b/src/templates/pages/home.html @@ -70,7 +70,7 @@

-
+
{% for stat in general_stats %}