diff --git a/elekto/controllers/elections.py b/elekto/controllers/elections.py
index a1f779f..32e2215 100644
--- a/elekto/controllers/elections.py
+++ b/elekto/controllers/elections.py
@@ -151,7 +151,7 @@ def elections_edit(eid):
SESSION.commit()
F.flash('The old ballot is sucessfully deleted, please re-cast the ballot.')
- return F.redirect(F.url_for('elections_voting_page', eid=eid))
+ return F.redirect(F.url_for('elections_single', eid=eid))
@APP.route('/app/elections/
- The poll starts from {{ election['start_datetime'] }} UTC and ends at
+ {% if election['status'] == 'running' and g.user.username in voters['eligible_voters'] %}
+ {% if g.user.id in voted %}
+ You have cast your vote.
+ {% else %}
+ You have not yet voted in this election.
+ {% endif %}
+ {% endif %}
+ Voting starts at {{ election['start_datetime'] }} UTC and ends at
{{ election['end_datetime'] }} UTC.
-
{% if g.user.username not in voters['eligible_voters'] %}
If you wish to participate in the election, please fill the
exception form
before {{ election['exception_due'] }}.
{% endif %}
-
{% endfor %}
{{ election['status'] }}
- Only the {% if election['no_winners'] > 1 %} {{ election['no_winners']}} {% else %} single {% endif %} favorite chocie{% if election['no_winners'] > 1 %}s {% endif %} will win the election.
+ Only the {% if election['no_winners'] > 1 %} {{ election['no_winners']}} {% else %} single {% endif %} preferred candidate{% if election['no_winners'] > 1 %}s {% endif %} will win the election.
The poll ends at {{ election['end_datetime'] }} UTC. Contact the poll supervisor{% if election['election_officers'] | length > 1 %}s{% endif %} if you need help.
- Note: A lower rank indicates a higher preference and "No opinion" does not indicate the lowest preference; it means you do not choose to rank this choice with respect to other choices.
+ Note: Rank your most preferred candidate as "1" and less preferred candidates with higher numbers. "No opinion" does not indicate the lowest preference; it means you do not choose to rank this choice with respect to other choices.