Mercurial > hg > soundsoftware-site
comparison app/controllers/projects_controller.rb @ 351:ebf53b46f3f3 feature_123
Add the overview setting to the project settings. Still rather clumsy, but it does appear to work!
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 31 Mar 2011 18:20:16 +0100 |
parents | ab672e427b9b |
children | a9921f3e9088 |
comparison
equal
deleted
inserted
replaced
350:a1e6dc0e204b | 351:ebf53b46f3f3 |
---|---|
215 } | 215 } |
216 format.xml { render :xml => @project.errors, :status => :unprocessable_entity } | 216 format.xml { render :xml => @project.errors, :status => :unprocessable_entity } |
217 end | 217 end |
218 end | 218 end |
219 end | 219 end |
220 | 220 |
221 def overview | |
222 @project.has_welcome_page = params[:has_welcome_page] | |
223 if @project.save | |
224 flash[:notice] = l(:notice_successful_update) | |
225 end | |
226 redirect_to :action => 'settings', :id => @project, :tab => 'overview' | |
227 end | |
228 | |
221 def modules | 229 def modules |
222 @project.enabled_module_names = params[:enabled_modules] | 230 @project.enabled_module_names = params[:enabled_modules] |
223 flash[:notice] = l(:notice_successful_update) | 231 flash[:notice] = l(:notice_successful_update) |
224 redirect_to :action => 'settings', :id => @project, :tab => 'modules' | 232 redirect_to :action => 'settings', :id => @project, :tab => 'modules' |
225 end | 233 end |