1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-16 08:32:02 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2016-08-20 12:18:29 +00:00
parent 28fc7df5c4
commit 9ef42ce3d5
2 changed files with 2 additions and 1 deletions

View File

@ -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]

View File

@ -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