Skip to content

Commit

Permalink
Add conditional if note count None
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Feb 25, 2021
1 parent 6ec8bd9 commit bcb3285
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ <h3 class="ds-padded">Previous Elections</h3>
<td>{{ person_post.election.election_date|date:"Y" }}</td>
<td>{{ person_post.post.label }}: {{ person_post.election }}</td>
<td>{{ person_post.party.party_name }}</td>
{% if person_post.elected %}
<td>{{ person_post.votes_cast|intcomma }} votes (elected)</td>
{% if person_post.votes_cast %}
<td>{{ person_post.votes_cast|intcomma }} votes{% if person_post.elected%} (elected){% endif %}</td>
{% else %}
<td>{{ person_post.votes_cast|intcomma }} votes</td>
<td>Vote count not available.{% if person_post.elected%} (elected){% endif %}</td>
{% endif %}
</tr>
{% endfor %}
Expand Down

0 comments on commit bcb3285

Please sign in to comment.