]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/_voter_list.rhtml
removed save line that was causing the new elections to fail
[selectricity-live] / app / views / election / _voter_list.rhtml
old mode 100644 (file)
new mode 100755 (executable)
index 2a39b8c..c55afdb
@@ -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?