# 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
<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) %>
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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: Създаване на подпроекти
description_date_from: Въведете начална дата
description_date_to: Въведете крайна дата
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
+ label_new_project_issue_tab_enabled: Показване на меню-елемент "Нова задача"
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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"
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
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
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
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
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
button_filter: フィルタ
mail_body_password_updated: パスワードが変更されました。
label_no_preview: このファイルはプレビューできません
- setting_new_project_issue_tab_enabled: '"新しいチケット" タブを表示'
error_no_tracker_allowed_for_new_issue_in_project: このプロジェクトにはチケットの追加が許可されているトラッカーがありません
label_tracker_all: すべてのトラッカー
+ label_new_project_issue_tab_enabled: '"新しいチケット" タブを表示'
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
button_filter: 필터
mail_body_password_updated: 암호가 변경되었습니다.
label_no_preview: 미리보기 없음
- setting_new_project_issue_tab_enabled: '"새 일감" 탭 표시'
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: '"새 일감" 탭 표시'
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
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: 建立子專案
description_date_from: 輸入起始日期
description_date_to: 輸入結束日期
text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
+ label_new_project_issue_tab_enabled: 顯示「建立新議題」標籤頁面
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
button_filter: 设置为过滤条件
mail_body_password_updated: 您的密码已经变更。
label_no_preview: 没有可以显示的预览内容
- setting_new_project_issue_tab_enabled: 显示“新建问题”标签
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: 显示“新建问题”标签
+ setting_new_item_menu_tab: Project menu tab for creating new objects
+ label_new_object_tab_enabled: Display the "+" drop-down
default:
- '6'
- '7'
-new_project_issue_tab_enabled:
- default: 0
+new_item_menu_tab:
+ default: 2
end
Redmine::MenuManager.map :project_menu do |menu|
+ menu.push :new_object, nil, :caption => ' + ',
+ :if => Proc.new { |p| Setting.new_item_menu_tab == '2' },
+ :html => { :id => 'new-object', :onclick => 'toggleNewObjectDropdown(); return false;' }
+ menu.push :new_issue_sub, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
+ :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
+ :if => Proc.new { |p| Issue.allowed_target_trackers(p).any? },
+ :permission => :add_issues,
+ :parent => :new_object
+ menu.push :new_issue_category, {:controller => 'issue_categories', :action => 'new'}, :param => :project_id, :caption => :label_issue_category_new,
+ :parent => :new_object
+ menu.push :new_version, {:controller => 'versions', :action => 'new'}, :param => :project_id, :caption => :label_version_new,
+ :parent => :new_object
+ menu.push :new_news, {:controller => 'news', :action => 'new'}, :param => :project_id, :caption => :label_news_new,
+ :parent => :new_object
+ menu.push :new_document, {:controller => 'documents', :action => 'new'}, :param => :project_id, :caption => :label_document_new,
+ :parent => :new_object
+ menu.push :new_wiki_page, {:controller => 'wiki', :action => 'new'}, :param => :project_id, :caption => :label_wiki_page_new,
+ :parent => :new_object
+ menu.push :new_file, {:controller => 'files', :action => 'new'}, :param => :project_id, :caption => :label_attachment_new,
+ :parent => :new_object
menu.push :overview, { :controller => 'projects', :action => 'show' }
menu.push :activity, { :controller => 'activities', :action => 'index' }
menu.push :roadmap, { :controller => 'versions', :action => 'index' }, :param => :project_id,
menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural
menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new,
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
- :if => Proc.new { |p| Setting.new_project_issue_tab_enabled? && Issue.allowed_target_trackers(p).any? },
+ :if => Proc.new { |p| Setting.new_item_menu_tab == '1' && Issue.allowed_target_trackers(p).any? },
:permission => :add_issues
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
end
def render_single_menu_node(item, caption, url, selected)
- link_to(h(caption), url, item.html_options(:selected => selected))
+ options = item.html_options(:selected => selected)
+
+ # virtual nodes are only there for their children to be displayed in the menu
+ # and should not do anything on click, except if otherwise defined elsewhere
+ if url.blank?
+ url = '#'
+ options.reverse_merge!(:onclick => 'return false;')
+ end
+ link_to(h(caption), url, options)
end
def render_unattached_menu_item(menu_item, project)
# * Checking the permission or the url target (project only)
# * Checking the conditions of the item
def allowed?(user, project)
- if user && project
+ if url.blank?
+ # this is a virtual node that is only there for its children to be diplayed in the menu
+ # it is considered an allowed node if at least one of the children is allowed
+ all_children = children
+ all_children += child_menus.call(project) if child_menus
+ return false unless all_children.detect{|child| child.allowed?(user, project) }
+ elsif user && project
if permission
unless user.allowed_to?(permission, project)
return false
$('input[data-disables], input[data-enables], input[data-shows]').each(toggleDisabledOnChange);
}
+function toggleNewObjectDropdown() {
+ var dropdown = $('#new-object + ul.menu-children');
+ if(dropdown.hasClass('visible')){
+ dropdown.removeClass('visible');
+ }else{
+ dropdown.addClass('visible');
+ }
+}
+
(function ( $ ) {
// detect if native date input is supported
padding: 4px 10px 4px 10px;
}
#main-menu li a:hover {background:#759FCF; color:#fff;}
+#main-menu li:hover ul.menu-children, #main-menu li ul.menu-children.visible {display: block;}
#main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;}
+#main-menu li a.new-object { background-color:#759FCF; }
+
+#main-menu .menu-children {
+ display: none;
+ position:absolute;
+ width: inherit;
+ z-index:1;
+ background-color:#fff;
+ border-right: 1px solid #759FCF;
+ border-bottom: 1px solid #759FCF;
+ border-left: 1px solid #759FCF;
+}
+#main-menu .menu-children li {float:left; clear:both; width:100%;}
+#main-menu .menu-children li a {color: #555; background-color:#fff; font-weight:normal;}
+#main-menu .menu-children li a:hover {color: #fff; background-color: #759FCF;}
+
#main-menu .tabs-buttons {
right: 6px;
background-color: transparent;
#main-menu li a { background-color: #507AAA; font-weight: bold;}
#main-menu li a:hover { background: #507AAA; text-decoration: underline; }
#main-menu li a.selected, #main-menu li a.selected:hover { background-color:#EEEEEE; }
+#main-menu li a.new-object { background-color:#507AAA; text-decoration: none; }
+
+#main-menu .menu-children {
+ border-right: 1px solid #507AAA;
+ border-bottom: 1px solid #507AAA;
+ border-left: 1px solid #507AAA;
+}
+#main-menu .menu-children li a:hover { background-color: #507AAA;}
+
/* Tables */
table.list tbody td, table.list tbody tr:hover td { border: solid 1px #d7d7d7; }
#main-menu li a { background-color: #578bb8; border-right: 1px solid #fff; font-size: 90%; padding: 4px 8px 4px 8px; font-weight: bold; }
#main-menu li a:hover { background-color: #80b0da; color: #ffffff; }
#main-menu li a.selected, #main-menu li a.selected:hover { background-color: #80b0da; color: #ffffff; }
+#main-menu li a.new-object { background-color:#80b0da; }
+
+#main-menu .menu-children {
+ border-right: 1px solid #80b0da;
+ border-bottom: 1px solid #80b0da;
+ border-left: 1px solid #80b0da;
+}
+#main-menu .menu-children li a { border-right: none; }
+#main-menu .menu-children li a:hover { background-color: #80b0da }
#footer { background-color: #578bb8; border: 0; color: #fff;}
#footer a { color: #fff; font-weight: bold; }
end
def test_index_should_not_include_new_issue_tab_when_disabled
- with_settings :new_project_issue_tab_enabled => '0' do
+ with_settings :new_item_menu_tab => '0' do
@request.session[:user_id] = 2
get :index, :project_id => 1
assert_select '#main-menu a.new-issue', 0
end
def test_index_should_include_new_issue_tab_when_enabled
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
@request.session[:user_id] = 2
get :index, :project_id => 1
assert_select '#main-menu a.new-issue[href="/projects/ecookbook/issues/new"]', :text => 'New issue'
end
def test_new_should_have_new_issue_tab_as_current_menu_item
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
@request.session[:user_id] = 2
get :new, :project_id => 1
assert_select '#main-menu a.new-issue.selected'
end
def test_index_should_not_include_new_issue_tab_for_project_without_trackers
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
Project.find(1).trackers.clear
@request.session[:user_id] = 2
end
def test_index_should_not_include_new_issue_tab_for_users_with_copy_issues_permission_only
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
role = Role.find(1)
role.remove_permission! :add_issues
role.add_permission! :copy_issues
end
end
end
+
+ def test_render_empty_virtual_menu_node_with_children
+
+ # only empty item with no click target
+ Redmine::MenuManager.map :menu1 do |menu|
+ menu.push(:parent_node, nil, { })
+ end
+
+ # parent with unallowed unattached child
+ Redmine::MenuManager.map :menu2 do |menu|
+ menu.push(:parent_node, nil, {:children => Proc.new {|p|
+ [Redmine::MenuManager::MenuItem.new("test_child_unallowed", {:controller => 'issues', :action => 'new'}, {})]
+ } })
+ end
+
+ # parent with unallowed standard child
+ Redmine::MenuManager.map :menu3 do |menu|
+ menu.push(:parent_node, nil, {})
+ menu.push(:test_child_unallowed, {:controller =>'issues', :action => 'new'}, {:parent => :parent_node})
+ end
+
+ # should not be displayed to anonymous
+ User.current = User.find(6)
+ assert_nil render_menu(:menu1, Project.find(1))
+ assert_nil render_menu(:menu2, Project.find(1))
+ assert_nil render_menu(:menu3, Project.find(1))
+
+ # should be displayed to an admin
+ User.current = User.find(1)
+ @output_buffer = render_menu(:menu2, Project.find(1))
+ assert_select("ul li a.parent-node", "Parent node")
+ @output_buffer = render_menu(:menu3, Project.find(1))
+ assert_select("ul li a.parent-node", "Parent node")
+
+ end
def test_render_menu_node_with_children_without_an_array
parent_node = Redmine::MenuManager::MenuItem.new(:parent_node,