Skip to content

Commit

Permalink
Show coronavirus related info for ballots
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Mar 18, 2020
1 parent e357c5b commit d52c77c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion wcivf/apps/elections/templates/elections/post_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ <h1>
{% if object.friendly_name != object.election.nice_election_name %}
<h2>{{ object.friendly_name }}</h2>
{% endif %}

{% if postelection.metadata.coronavirus_message %}
<div style="border:1px solid red;margin:1em 0;padding:1em">
<strong>{{ postelection.metadata.coronavirus_message|safe }}</strong>
</div>
{% endif %}
<p>
This election
{% now "j F Y" as current_day %}
Expand Down
6 changes: 5 additions & 1 deletion wcivf/apps/elections/templates/elections/postcode_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ <h1>
{% if postelection.friendly_name != postelection.election.nice_election_name %}
<h2>{{ postelection.friendly_name }}</h2>
{% endif %}

{% if postelection.metadata.coronavirus_message %}
<div style="border:1px solid red;margin:1em 0;padding:1em">
<strong>{{ postelection.metadata.coronavirus_message|safe }}</strong>
</div>
{% endif %}
<p>
This election
{% now "j F Y" as current_day %}
Expand Down

0 comments on commit d52c77c

Please sign in to comment.