comparison 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
comparison
equal deleted inserted replaced
362:d1eb5d381a77 363:ce85aa993384
24 BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues, 24 BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues,
25 'issuesreportedbyme' => :label_reported_issues, 25 'issuesreportedbyme' => :label_reported_issues,
26 'issueswatched' => :label_watched_issues, 26 'issueswatched' => :label_watched_issues,
27 'activitymyprojects' => :label_activity_my_recent, 27 'activitymyprojects' => :label_activity_my_recent,
28 'news' => :label_news_latest, 28 'news' => :label_news_latest,
29 'tipoftheday' => :label_tipoftheday,
29 'calendar' => :label_calendar, 30 'calendar' => :label_calendar,
30 'documents' => :label_document_plural, 31 'documents' => :label_document_plural,
31 'timelog' => :label_spent_time 32 'timelog' => :label_spent_time
32 }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze 33 }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze
33 34
34 DEFAULT_LAYOUT = { 'left' => ['activitymyprojects'], 35 DEFAULT_LAYOUT = { 'left' => ['tipoftheday', 'activitymyprojects'],
35 'right' => ['issueswatched','calendar'] 36 'right' => ['issueswatched','calendar']
36 }.freeze 37 }.freeze
37 38
38 verify :xhr => true, 39 verify :xhr => true,
39 :only => [:add_block, :remove_block, :order_blocks] 40 :only => [:add_block, :remove_block, :order_blocks]