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:
parent
28fc7df5c4
commit
9ef42ce3d5
@ -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]
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user