Major integration of Courtland's design into the QuickVotes.
[selectricity-live] / app / controllers / election_controller.rb
index 7040c38c26b7acdb8ee2bc50bacb5a42c16e6909..570f1fc3687a4162428555d06829544074d74b93 100644 (file)
@@ -16,6 +16,8 @@ class ElectionController < ApplicationController
   end
   
   def general_information
+    @sidebar_content = render_to_string :partial => 'progress',
+                                        :locals => { :page => 'overview' }
     @election = Election.new
     render :action => 'general_information'
   end
@@ -67,11 +69,22 @@ class ElectionController < ApplicationController
     @election.activate!
     redirect_to :action => 'show', :id => @election.id
   end
+  
+  def change_notices
+    election = Election.find(params[:id])
+    if election.notices == 0
+      election.notices = 1 
+    else
+      election.notices = 0
+    end
+  end
 
   # methods fod display, adding, deleting, and manipulating candidate
   # information for elections
   ####################################################################
   def edit_candidates
+    @sidebar_content = render_to_string :partial => 'progress',
+                                        :locals => { :page => 'candidates' }
     @election = Election.find( params[:id] )
   end
 

Benjamin Mako Hill || Want to submit a patch?