0005-move-New-issue-menu-item-to-the-new-object-menu-and-.patch

Jan from Planio www.plan.io, 2016-06-06 14:26

Download (2.13 KB)

View differences:

lib/redmine.rb
228 228
Redmine::MenuManager.map :project_menu do |menu|
229 229
  menu.push :new_object, nil, :caption => ' + ',
230 230
              :html => { :id => 'new-object', :onclick => 'toggleNewObjectDropdown(); return false;' }
231
  menu.push :new_issue_sub, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
232
              :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
233
              :if => Proc.new { |p| Issue.allowed_target_trackers(p).any? },
234
              :permission => :add_issues,
235
              :parent => :new_object
231 236
  menu.push :new_issue_category, {:controller => 'issue_categories', :action => 'new'}, :param => :project_id, :caption => :label_issue_category_new,
232 237
              :parent => :new_object
233 238
  menu.push :new_version, {:controller => 'versions', :action => 'new'}, :param => :project_id, :caption => :label_version_new,
......
244 249
              :if => Proc.new { |p| p.shared_versions.any? }
245 250
  menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
246 251
  menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
247
              :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
248 252
              :if => Proc.new { |p| Setting.new_project_issue_tab_enabled? && Issue.allowed_target_trackers(p).any? },
249 253
              :permission => :add_issues
250 254
  menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt
251
-