summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--app/controllers/timelog_controller.rb2
-rw-r--r--lib/redmine.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 93051fd66..cab4a5d21 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class TimelogController < ApplicationController
- menu_item :issues
+ menu_item :time_entries
before_action :find_time_entry, :only => [:show, :edit, :update]
before_action :find_time_entries, :only => [:bulk_edit, :bulk_update, :destroy]
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