diff 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
line wrap: on
line diff
--- a/app/controllers/projects_controller.rb	Thu Mar 31 16:14:38 2011 +0100
+++ b/app/controllers/projects_controller.rb	Thu Mar 31 18:20:16 2011 +0100
@@ -217,7 +217,15 @@
       end
     end
   end
-  
+
+  def overview
+    @project.has_welcome_page = params[:has_welcome_page]
+    if @project.save
+      flash[:notice] = l(:notice_successful_update)
+    end
+    redirect_to :action => 'settings', :id => @project, :tab => 'overview'
+  end
+
   def modules
     @project.enabled_module_names = params[:enabled_modules]
     flash[:notice] = l(:notice_successful_update)