Commit 22ec5640 authored by jplang's avatar jplang
Browse files

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: https://svn.redmine.org/redmine/trunk@15508 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 4b86cd70
......@@ -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
......
......@@ -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) %>
......
......@@ -1201,7 +1201,7 @@ ar:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1296,7 +1296,7 @@ az:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -447,7 +447,6 @@ bg:
setting_search_results_per_page: Резултати от търсене на страница
setting_attachment_extensions_allowed: Позволени типове на файлове
setting_attachment_extensions_denied: Разрешени типове на файлове
setting_new_project_issue_tab_enabled: Показване на меню-елемент "Нова задача"
permission_add_project: Създаване на проект
permission_add_subprojects: Създаване на подпроекти
......@@ -1193,3 +1192,4 @@ bg:
description_date_from: Въведете начална дата
description_date_to: Въведете крайна дата
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
label_new_project_issue_tab_enabled: Показване на меню-елемент "Нова задача"
......@@ -1214,7 +1214,7 @@ bs:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1194,7 +1194,7 @@ ca:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1202,7 +1202,7 @@ cs:
button_filter: Filtr
mail_body_password_updated: Vaše heslo bylo změněno.
label_no_preview: Náhled není k dispozici
setting_new_project_issue_tab_enabled: Zobraz záložku "Nový úkol"
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Zobraz záložku "Nový úkol"
......@@ -1218,7 +1218,7 @@ da:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1204,7 +1204,7 @@ de:
label_relations: Beziehungen
button_filter: Filter
mail_body_password_updated: Ihr Passwort wurde geändert.
setting_new_project_issue_tab_enabled: Tab "Neues Ticket" anzeigen
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Tab "Neues Ticket" anzeigen
......@@ -1201,7 +1201,7 @@ el:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1203,7 +1203,7 @@ en-GB:
label_relations: Relations
button_filter: Filter
mail_body_password_updated: Your password has been changed.
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -444,7 +444,7 @@ en:
setting_search_results_per_page: Search results per page
setting_attachment_extensions_allowed: Allowed extensions
setting_attachment_extensions_denied: Disallowed extensions
setting_new_project_issue_tab_enabled: Display the "New issue" tab
setting_new_item_menu_tab: Project menu tab for creating new objects
permission_add_project: Create project
permission_add_subprojects: Create subprojects
......@@ -995,6 +995,8 @@ en:
label_field_format_enumeration: Key/value list
label_default_values_for_new_users: Default values for new users
label_relations: Relations
label_new_project_issue_tab_enabled: Display the "New issue" tab
label_new_object_tab_enabled: Display the "+" drop-down
button_login: Login
button_submit: Submit
......
......@@ -1235,7 +1235,7 @@ es-PA:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1233,7 +1233,7 @@ es:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1205,7 +1205,7 @@ et:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1202,7 +1202,7 @@ eu:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1202,7 +1202,7 @@ fa:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -1222,7 +1222,7 @@ fi:
button_filter: Filter
mail_body_password_updated: Your password has been changed.
label_no_preview: No preview available
setting_new_project_issue_tab_enabled: Display the "New issue" tab
error_no_tracker_allowed_for_new_issue_in_project: The project doesn't have any trackers
for which you can create an issue
label_tracker_all: All trackers
label_new_project_issue_tab_enabled: Display the "New issue" tab
......@@ -456,7 +456,7 @@ fr:
setting_attachment_extensions_denied: Extensions non autorisées
setting_sys_api_key: Clé de protection de l'API
setting_lost_password: Autoriser la réinitialisation par email de mot de passe perdu
setting_new_project_issue_tab_enabled: Afficher l'onglet "Nouvelle demande"
setting_new_item_menu_tab: Onglet de création d'objets dans le menu du project
permission_add_project: Créer un projet
permission_add_subprojects: Créer des sous-projets
......@@ -1004,6 +1004,8 @@ fr:
label_field_format_enumeration: Liste clé/valeur
label_default_values_for_new_users: Valeurs par défaut pour les nouveaux utilisateurs
label_relations: Relations
label_new_project_issue_tab_enabled: Afficher l'onglet "Nouvelle demande"
label_new_object_tab_enabled: Afficher le menu déroulant "+"
button_login: Connexion
button_submit: Soumettre
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment