]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/_voter_list.rhtml
added support for drag and drop preferential quick voting
[selectricity-live] / app / views / election / _voter_list.rhtml
index 2a39b8cf4f3199a2568cd26e5e682e08979c9b9f..c55afdb63e62ebc10768bfc1fb3c65c67d76c09f 100644 (file)
@@ -1,6 +1,8 @@
-<%
-# 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>
@@ -16,4 +18,4 @@
   </div>  
   <% end %>
 </ul>
-
+<% end %>

Benjamin Mako Hill || Want to submit a patch?