projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A few major changes:
[selectricity-live]
/
app
/
views
/
election
/
_voter_list.rhtml
diff --git
a/app/views/election/_voter_list.rhtml
b/app/views/election/_voter_list.rhtml
index 2a39b8cf4f3199a2568cd26e5e682e08979c9b9f..c55afdb63e62ebc10768bfc1fb3c65c67d76c09f 100644
(file)
--- a/
app/views/election/_voter_list.rhtml
+++ b/
app/views/election/_voter_list.rhtml
@@
-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>
<p>The following voters are currently registered for this election:</p>
<ul>
@@
-16,4
+18,4
@@
</div>
<% end %>
</ul>
</div>
<% end %>
</ul>
-
+<% end %>
Benjamin Mako Hill
||
Want to submit a patch?