From 79a272f8fd068acdcd33cf55b6465968b7d430fb Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Thu, 6 Jun 2024 12:30:39 +0200 Subject: [PATCH] fix vetoes count in fellowship nominations --- .../colleges/templates/colleges/_voting_results_box.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scipost_django/colleges/templates/colleges/_voting_results_box.html b/scipost_django/colleges/templates/colleges/_voting_results_box.html index da6c0a6a9..e0a223c71 100644 --- a/scipost_django/colleges/templates/colleges/_voting_results_box.html +++ b/scipost_django/colleges/templates/colleges/_voting_results_box.html @@ -4,13 +4,13 @@ <li class="list-group-item p-2 text-success">Agree: {{ voting_round.votes.agree.count }}</li> <li class="list-group-item p-2 text-warning">Abstain: {{ voting_round.votes.abstain.count }}</li> <li class="list-group-item p-2 text-danger">Disagree: {{ voting_round.votes.disagree.count }}</li> - + {% if not is_ed_admin %} <li class="list-group-item p-2 text-black">Veto: {{ voting_round.nomination.vetoes.count }}</li> {% else %} - {% if voting_round.nomination.vetoes %} - <li class="list-group-item p-2 text-black fs-3">Nomination vetoed!</li> + {% if voting_round.nomination.vetoes.all %} + <li class="list-group-item p-2 text-black fs-3">Nomination vetoed by {{ voting_round.nomination.vetoes.count }} voters</li> {% endif %} {% endif %} -- GitLab