X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0..f7389d0e26545d9e0d1e696c51da3380c7238cd7:/app/views/election/show.rhtml diff --git a/app/views/election/show.rhtml b/app/views/election/show.rhtml old mode 100755 new mode 100644 index 0051861..3e63628 --- a/app/views/election/show.rhtml +++ b/app/views/election/show.rhtml @@ -1,5 +1,7 @@ -<% %> -
Summary
@@ -33,7 +33,10 @@<%= link_to "Edit overview.", :action => 'edit', :id => @election.id %>
<% end %> -Candidates
++ Candidates + +<% unless @election.candidates.empty? %> <%= render :partial => 'candidate_list' %> @@ -45,7 +48,10 @@ <% end %> -Voters
++ Voters + +<% unless @election.voters.empty? %> <%= render :partial => 'voter_list' %> @@ -54,8 +60,12 @@There are currently no voters registered. <%= link_to "Add some!", :action => 'edit_voters', :id => @election.id unless @election.active %>
<% end %> -<% unless @election.active %> -Start Election
+<% unless @election.active? %> + ++ Start Election + +<% if @election.start_blockers.length > 0 %>Your vote cannot be started for the following reasons:
@@ -65,7 +75,7 @@ <% end %> <% else %> -Please check eveything carefully on this page before starting this +
Please check everything carefully on this page before starting this vote. Once you begin the vote, you will not be able to add or change candidates, modify the voting lists, or change the end time.