diff --git a/vote/templates/vote/index.html b/vote/templates/vote/index.html index 6961f68456a7e8017e099c3a0607bdda00be7776..0be0580abd6b69048602cac95853af1d08d6dcb4 100644 --- a/vote/templates/vote/index.html +++ b/vote/templates/vote/index.html @@ -14,12 +14,6 @@ <div class="list-group mt-3"> {% if voter.can_vote %} <a class="btn btn-primary" role="button" href="{% url 'vote:vote' %}">Vote Now!</a> - {% elif voter.voted %} - <div class="alert alert-success" role="alert"> - <h4 class="alert-heading">Thank You For Your Vote!</h4> - <hr> - <p class="mb-0">This election will end {{ voter.election.end_date|date:"l Y-m-d H:i:s" }}</p> - </div> {% elif voter.election.closed %} <div class="alert alert-info" role="alert"> <h4 class="alert-heading">Voting Ended</h4> @@ -28,6 +22,12 @@ <a href="{{ voter.election.meeting_link }}">{{ voter.election.meeting_link }}</a>, starting on {{ voter.election.meeting_start_time|date:"l Y-m-d H:i" }}. </div> + {% elif voter.voted %} + <div class="alert alert-success" role="alert"> + <h4 class="alert-heading">Thank You For Your Vote!</h4> + <hr> + <p class="mb-0">This election will end {{ voter.election.end_date|date:"l Y-m-d H:i:s" }}</p> + </div> {% else %} <a class="btn btn-outline-dark disabled" role="button" href="#">Voting starts {{ voter.election.application_due_date|date:"l Y-m-d H:i:s" }}</a>