comparison app/controllers/my_controller.rb @ 1217:875b5b4c574d cannam

Add "People I'm working with" as My Page box -- currently off by default
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 12 Mar 2013 13:01:36 +0000
parents a943f341c99d
children 2c59ee348e2b
comparison
equal deleted inserted replaced
1216:05ce7de07fef 1217:875b5b4c574d
20 20
21 helper :issues 21 helper :issues
22 helper :users 22 helper :users
23 helper :custom_fields 23 helper :custom_fields
24 helper :projects 24 helper :projects
25 helper :activities
25 26
26 BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues, 27 BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues,
27 'issuesreportedbyme' => :label_reported_issues, 28 'issuesreportedbyme' => :label_reported_issues,
28 'issueswatched' => :label_watched_issues, 29 'issueswatched' => :label_watched_issues,
29 'activitymyprojects' => :label_activity_my_recent, 30 'activitymyprojects' => :label_activity_my_recent,
30 'news' => :label_news_latest, 31 'news' => :label_news_latest,
31 'tipoftheday' => :label_tipoftheday, 32 'tipoftheday' => :label_tipoftheday,
32 'calendar' => :label_calendar, 33 'calendar' => :label_calendar,
33 'documents' => :label_document_plural, 34 'documents' => :label_document_plural,
34 'timelog' => :label_spent_time, 35 'timelog' => :label_spent_time,
35 'myprojects' => :label_my_projects 36 'myprojects' => :label_my_projects,
37 'colleagues' => :label_my_colleagues
36 }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze 38 }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze
37 39
38 DEFAULT_LAYOUT = { 'left' => ['myprojects', 'activitymyprojects'], 40 DEFAULT_LAYOUT = { 'left' => ['myprojects', 'activitymyprojects'],
39 'right' => ['tipoftheday', 'issueswatched'] 41 'right' => ['tipoftheday', 'issueswatched']
40 }.freeze 42 }.freeze