]> projects.mako.cc - selectricity-live/blobdiff - app/views/quickvote/_result.rhtml
added support for results for full elections
[selectricity-live] / app / views / quickvote / _result.rhtml
diff --git a/app/views/quickvote/_result.rhtml b/app/views/quickvote/_result.rhtml
deleted file mode 100644 (file)
index b643224..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<% %>
-<% if result.winner? and result.winners.length == 1%>
-  <p><em>The winner is:
-     <strong><%=h @candidates[result.winner].name.capitalize %></strong></em></p>
-<% elsif result.winner? and result.winners.length > 1 %>
-  <p><em>There was a tie. The winners are: <strong><%=h( result.winners.collect {|w| @candidates[w].to_s.capitalize}.join(", ") )%></strong></em></p>
-<% else %>
-  <p><em>There is no winner using this method. </em></strong></p>
-<% end %>

Benjamin Mako Hill || Want to submit a patch?