comparison app/controllers/my_controller.rb @ 1164:a943f341c99d feature_550

Make "my projects" box on My Page look nice when user has no projects (invite them to create one)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Mon, 21 Jan 2013 14:12:05 +0000
parents 5ebdeb79ea9c
children 16826c3afbba 875b5b4c574d
comparison
equal deleted inserted replaced
1086:5ebdeb79ea9c 1164:a943f341c99d
33 'documents' => :label_document_plural, 33 'documents' => :label_document_plural,
34 'timelog' => :label_spent_time, 34 'timelog' => :label_spent_time,
35 'myprojects' => :label_my_projects 35 'myprojects' => :label_my_projects
36 }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze 36 }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze
37 37
38 DEFAULT_LAYOUT = { 'left' => ['tipoftheday', 'activitymyprojects'], 38 DEFAULT_LAYOUT = { 'left' => ['myprojects', 'activitymyprojects'],
39 'right' => ['issueswatched'] 39 'right' => ['tipoftheday', 'issueswatched']
40 }.freeze 40 }.freeze
41 41
42 verify :xhr => true, 42 verify :xhr => true,
43 :only => [:add_block, :remove_block, :order_blocks] 43 :only => [:add_block, :remove_block, :order_blocks]
44 44