]> projects.mako.cc - selectricity/blobdiff - app/views/election/_voter_list.rhtml
The summary page now had color coded tables. Red = election, green = quickvote.
[selectricity] / app / views / election / _voter_list.rhtml
index 2a39b8cf4f3199a2568cd26e5e682e08979c9b9f..4493b0a3950f5c862576f4172c7463004a9d15fa 100644 (file)
@@ -1,10 +1,13 @@
-<%
-# 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 %>
@@ -16,4 +19,4 @@
   </div>  
   <% end %>
 </ul>
-
+<% end %>

Benjamin Mako Hill || Want to submit a patch?