diff app/controllers/my_controller.rb @ 363:ce85aa993384 feature_124

Add Tip of the Day as a block for My Page (on by default)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 01 Apr 2011 11:56:49 +0100
parents 1a514b9347d4
children 350acce374a2
line wrap: on
line diff
--- a/app/controllers/my_controller.rb	Fri Apr 01 11:41:45 2011 +0100
+++ b/app/controllers/my_controller.rb	Fri Apr 01 11:56:49 2011 +0100
@@ -26,12 +26,13 @@
              'issueswatched' => :label_watched_issues,
              'activitymyprojects' => :label_activity_my_recent,
              'news' => :label_news_latest,
+             'tipoftheday' => :label_tipoftheday,
              'calendar' => :label_calendar,
              'documents' => :label_document_plural,
              'timelog' => :label_spent_time
            }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze
 
-  DEFAULT_LAYOUT = {  'left' => ['activitymyprojects'], 
+  DEFAULT_LAYOUT = {  'left' => ['tipoftheday', 'activitymyprojects'], 
                       'right' => ['issueswatched','calendar'] 
                    }.freeze