% if @election.voters.length == 0 %>
There are currently no voters registered for this election.
<% else %>
The following voters are currently registered for this election:
<% @election.voters.each do |voter| %>
- <%= voter.email %>
<% if @edit %>
<%= link_to_remote "Delete",
:complete => "Element.remove('voter#{voter.id}')",
:url => { :action => :delete_voter, :id => @election.id,
:voter => voter.id } %>
<% end %>
<% end %>
<% end %>