-<%
-# basic election information template
--%>
+<% if @election.voters.length == 0 %>
+
+<p>There are currently no voters registered for this election.</p>
+
+<% else %>
+
<p>The following voters are currently registered for this election:</p>
<ul>
- <% @election.voters.each do |voter| %>
+<% @election.voters.each do |voter| %>
<div id="voter<%= voter.id %>">
<li><%= voter.email %>
<% if @edit %>
</div>
<% end %>
</ul>
-
+<% end %>