summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-11 07:26:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-11 07:26:23 +0000
commit79fcbc82dc9c8d9d7023823e6e44e56e4970ff9d (patch)
tree2ac1da6d0331cc3f75276ec2489cbc2948696461 /app
parent893c96a9909d0365a28c8cf4ac5fa7d4a3ec75e3 (diff)
downloadredmine-79fcbc82dc9c8d9d7023823e6e44e56e4970ff9d.tar.gz
redmine-79fcbc82dc9c8d9d7023823e6e44e56e4970ff9d.zip
Adds a setting for choosing the new object menu item style (#15880).
Set to use the new "+" drop-down by default, but let users revert to the "New issue" tab, or no menu item at all. git-svn-id: http://svn.redmine.org/redmine/trunk@15508 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/issues_controller.rb2
-rw-r--r--app/views/settings/_display.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 67956667a..95c58674c 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -362,7 +362,7 @@ class IssuesController < ApplicationController
# Overrides Redmine::MenuManager::MenuController::ClassMethods for
# when the "New issue" tab is enabled
def current_menu_item
- if Setting.new_project_issue_tab_enabled? && [:new, :create].include?(action_name.to_sym)
+ if Setting.new_item_menu_tab == '1' && [:new, :create].include?(action_name.to_sym)
:new_issue
else
super
diff --git a/app/views/settings/_display.html.erb b/app/views/settings/_display.html.erb
index 1185a7cae..be3e70e34 100644
--- a/app/views/settings/_display.html.erb
+++ b/app/views/settings/_display.html.erb
@@ -25,7 +25,7 @@
<p><%= setting_text_field :thumbnails_size, :size => 6 %></p>
-<p><%= setting_check_box :new_project_issue_tab_enabled %></p>
+<p><%= setting_select :new_item_menu_tab, [[l(:label_none), '0'], [l(:label_new_project_issue_tab_enabled), '1'], [l(:label_new_object_tab_enabled), '2']] %></p>
</div>
<%= submit_tag l(:button_save) %>