summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-20 12:18:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-08-20 12:18:29 +0000
commit9ef42ce3d5f9b224a304c5e46a82ec2ede19aee3 (patch)
tree5c48c6ff8d85c7375236a5678f4748051e31dd94 /lib
parent28fc7df5c47095f46f3aea04c8ca913caada1c56 (diff)
downloadredmine-9ef42ce3d5f9b224a304c5e46a82ec2ede19aee3.tar.gz
redmine-9ef42ce3d5f9b224a304c5e46a82ec2ede19aee3.zip
New "Spent time" menu tab when spent time module is enabled on project (#23311).
git-svn-id: http://svn.redmine.org/redmine/trunk@15747 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 71722cc8e..56ad9f6c7 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -255,6 +255,7 @@ Redmine::MenuManager.map :project_menu do |menu|
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
:if => Proc.new { |p| Setting.new_item_menu_tab == '1' && Issue.allowed_target_trackers(p).any? },
:permission => :add_issues
+ menu.push :time_entries, { :controller => 'timelog', :action => 'index' }, :param => :project_id, :caption => :label_spent_time
menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt
menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar
menu.push :news, { :controller => 'news', :action => 'index' }, :param => :project_id, :caption => :label_news_plural