]> projects.mako.cc - selectricity/blobdiff - app/controllers/election_controller.rb
Refined the CSS and fixed some of the more recent issues.
[selectricity] / app / controllers / election_controller.rb
index 4ad8bacb354b5cac24a320b994f74427d2809a23..570f1fc3687a4162428555d06829544074d74b93 100644 (file)
@@ -16,6 +16,8 @@ class ElectionController < ApplicationController
   end
   
   def general_information
   end
   
   def general_information
+    @sidebar_content = render_to_string :partial => 'progress',
+                                        :locals => { :page => 'overview' }
     @election = Election.new
     render :action => 'general_information'
   end
     @election = Election.new
     render :action => 'general_information'
   end
@@ -81,6 +83,8 @@ class ElectionController < ApplicationController
   # information for elections
   ####################################################################
   def edit_candidates
   # information for elections
   ####################################################################
   def edit_candidates
+    @sidebar_content = render_to_string :partial => 'progress',
+                                        :locals => { :page => 'candidates' }
     @election = Election.find( params[:id] )
   end
 
     @election = Election.find( params[:id] )
   end
 

Benjamin Mako Hill || Want to submit a patch?