]> projects.mako.cc - selectricity/blobdiff - app/views/quickvote/_result_box.rhtml
refactored the results page
[selectricity] / app / views / quickvote / _result_box.rhtml
diff --git a/app/views/quickvote/_result_box.rhtml b/app/views/quickvote/_result_box.rhtml
new file mode 100644 (file)
index 0000000..41d9d17
--- /dev/null
@@ -0,0 +1,16 @@
+<div id="<%= method %>_result" class="resultbox"<%= ' style="display: none;"' unless @election.election_method == method %>>
+<div class="normal-header">
+  <span class="header"><%= ELECTION_TYPES[method]%> </span>
+  <span class="subheader">
+  <% if @election.election_method == method %>
+    Selected Method
+  <% else %>
+    Alternative Method 
+  <% end %></span>
+</div>
+
+<%= render :partial => 'methodinfo_' + method,
+           :object => @results[@election.election_method] %>
+
+</div>
+

Benjamin Mako Hill || Want to submit a patch?