diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-04 17:17:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-04 17:17:47 +0000 |
commit | 88a3a351d08b5446317c1813cf2b966aa5f716fb (patch) | |
tree | 169a31dda9d70770d0c63337e93c6f1b27617851 /lib/redmine/my_page.rb | |
parent | b9ee00a8c8ba2fe2b32eb33d299d4764ebc2968b (diff) | |
download | redmine-88a3a351d08b5446317c1813cf2b966aa5f716fb.tar.gz redmine-88a3a351d08b5446317c1813cf2b966aa5f716fb.zip |
Don't hardcode the groups on My page.
git-svn-id: http://svn.redmine.org/redmine/trunk@16475 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/my_page.rb')
-rw-r--r-- | lib/redmine/my_page.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/redmine/my_page.rb b/lib/redmine/my_page.rb index 02feb54bb..e2f078a14 100644 --- a/lib/redmine/my_page.rb +++ b/lib/redmine/my_page.rb @@ -19,6 +19,8 @@ module Redmine module MyPage include Redmine::I18n + CORE_GROUPS = ['top', 'left', 'right'] + CORE_BLOCKS = { 'issuesassignedtome' => {:label => :label_assigned_to_me_issues}, 'issuesreportedbyme' => {:label => :label_reported_issues}, @@ -30,6 +32,10 @@ module Redmine 'timelog' => {:label => :label_spent_time} } + def self.groups + CORE_GROUPS.dup.freeze + end + # Returns the available blocks def self.blocks CORE_BLOCKS.merge(additional_blocks).freeze |