From 332f5ae07881cc2d74d80e6dc8a1bda25a28f9e2 Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Tue, 4 Apr 2023 18:09:41 +0100 Subject: [PATCH] Show when a candidate is elected unopposed --- .../templates/includes/ballot_model.html | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/postcode_lookup/templates/includes/ballot_model.html b/postcode_lookup/templates/includes/ballot_model.html index 22ae89c..d1d04da 100644 --- a/postcode_lookup/templates/includes/ballot_model.html +++ b/postcode_lookup/templates/includes/ballot_model.html @@ -17,13 +17,22 @@ {% endif %} -{% if ballot.candidates_verified and not ballot.cancelled %} +{% if ballot.candidates_verified %} + {% if not ballot.cancelled or ballot.metadata.cancelled_election.title == "Uncontested election" %} + +

Visit Who Can I Vote For (Opens in new window) to find out more about your candidates

+ {% endif %} - -

Visit Who Can I Vote For (Opens in new window) to find out more about your candidates

{% endif %}