projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for results for full elections
[selectricity-live]
/
app
/
views
/
quickvote
/
results.rhtml
diff --git
a/app/views/quickvote/results.rhtml
b/app/views/quickvote/results.rhtml
index 5fd5f9e4bc0d15cf5cd8defe0a71a97be85a167b..8d8bf5f15d88b9413d534e6930ae8bf5314107d6 100644
(file)
--- a/
app/views/quickvote/results.rhtml
+++ b/
app/views/quickvote/results.rhtml
@@
-6,7
+6,7
@@
</div>
<div id="winner_box">
</div>
<div id="winner_box">
-<%= render :partial => 'result', :object => @results[@election.election_method] %>
+<%= render :partial => '
common/
result', :object => @results[@election.election_method] %>
</div>
<% if @election.shortdesc %>
</div>
<% if @election.shortdesc %>
@@
-32,12
+32,12
@@
<%= @election.voters.reject {|v| not v.voted? }.length %>
</blockquote>
<%= @election.voters.reject {|v| not v.voted? }.length %>
</blockquote>
-<%= render :partial => 'result_box',
+<%= render :partial => '
common/
result_box',
:locals => { :method => @election.election_method } %>
<% for result_type in @election.other_methods %>
:locals => { :method => @election.election_method } %>
<% for result_type in @election.other_methods %>
-<%= render :partial => 'result_box',
+<%= render :partial => '
common/
result_box',
:locals => { :method => result_type } %>
<% end %>
:locals => { :method => result_type } %>
<% end %>
Benjamin Mako Hill
||
Want to submit a patch?