Преглед на файлове

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
tags/3.4.0
Jean-Philippe Lang преди 7 години
родител
ревизия
9ef42ce3d5
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1
    1
      app/controllers/timelog_controller.rb
  2. 1
    0
      lib/redmine.rb

+ 1
- 1
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]

+ 1
- 0
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

Loading…
Отказ
Запис