Skip to content

Commit

Permalink
Include candidate info for cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Jan 9, 2022
1 parent 68cfe19 commit 04cd274
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

{% if object.metadata.cancelled_election.title %}
<h2>{{ object.metadata.cancelled_election.title }}</h2>
{% if object.display_as_party_list %}
{% include "elections/includes/_people_list_with_lists.html" with people=object.people %}
{% else %}
{% include "elections/includes/_people_list.html" with people=object.people %}
{% endif %}
{% else %}
<div>
{% if object.winner_count == object.people.count %}
Expand All @@ -14,7 +19,7 @@ <h2>{{ object.metadata.cancelled_election.title }}</h2>
seat{{ object.winner_count|pluralize }} in this ward/division, and only
{{ object.people.count|apnumber }} candidate{{ object.people|pluralize }}.</p>

<p>No votes will be cast, and the candidate{{ object.people|pluralize }} below have been automatically declared
<p>No votes will be cast, and the candidate{{ object.people|pluralize }} below ha{{ object.people|pluralize:"s,ve" }} been automatically declared
the winner{{ object.people|pluralize }}.</p>

{% if object.display_as_party_list %}
Expand Down

0 comments on commit 04cd274

Please sign in to comment.