Hide the link in the TOP menu #1375
This commit is contained in:
parent
8456eefb22
commit
c72b6dacde
@ -42,9 +42,11 @@ def dmsf_init
|
||||
parent: :new_object
|
||||
end
|
||||
# Main menu extension
|
||||
Redmine::MenuManager.map :top_menu do |menu|
|
||||
menu.push :dmsf, { controller: 'dmsf', action: 'index' }, caption: :menu_dmsf, html: { class: 'icon-dmsf' },
|
||||
unless(defined?(Setting.plugin_redmine_dmsf) && Setting.plugin_redmine_dmsf['dmsf_global_menu_disabled'])
|
||||
Redmine::MenuManager.map :top_menu do |menu|
|
||||
menu.push :dmsf, { controller: 'dmsf', action: 'index' }, caption: :menu_dmsf, html: { class: 'icon-dmsf' },
|
||||
if: Proc.new { User.current.allowed_to?(:view_dmsf_folders, nil, global: true) }
|
||||
end
|
||||
end
|
||||
|
||||
Redmine::AccessControl.map do |map|
|
||||
|
||||
@ -151,6 +151,15 @@
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= content_tag :label, l(:label_dmsf_global_menu_disabled) %>
|
||||
<%= check_box_tag 'settings[dmsf_global_menu_disabled]', true, @settings['dmsf_global_menu_disabled'] %>
|
||||
<em class="info">
|
||||
<%= l(:note_dmsf_global_menu_disabled) %><br/>
|
||||
<%= l(:label_default) %>: <%= l(:general_text_No) %>
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<hr/>
|
||||
<em class="info">
|
||||
<%= l(:label_dmsf_columns) %>
|
||||
|
||||
@ -456,6 +456,9 @@ cs:
|
||||
label_column_workflow: Schvalování
|
||||
label_column_author: Autor
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -452,6 +452,9 @@ de:
|
||||
label_column_workflow: Workflow
|
||||
label_column_author: Autor
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: Von mir gesperrte Dokumente
|
||||
|
||||
@ -456,6 +456,9 @@ en:
|
||||
label_column_workflow: Workflow
|
||||
label_column_author: Author
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -456,6 +456,9 @@ es:
|
||||
label_column_workflow: Flujo
|
||||
label_column_author: Autor
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -435,6 +435,9 @@ fa:
|
||||
label_column_workflow: روال تایید
|
||||
label_column_author: نویسنده
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: اسناد قفل شدهی من
|
||||
|
||||
@ -456,6 +456,9 @@ fr:
|
||||
label_column_workflow: Flux
|
||||
label_column_author: Auteur
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -455,6 +455,9 @@ hu:
|
||||
label_column_workflow: Workflow
|
||||
label_column_author: Szerző
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -456,6 +456,9 @@ it: # Italian strings thx 2 Matteo Arceci!
|
||||
label_column_workflow: Darbų eiga
|
||||
label_column_author: Autorius
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -457,6 +457,9 @@ ja:
|
||||
label_column_workflow: ワークフロー
|
||||
label_column_author: 作成者
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: 自分がロック中の文書
|
||||
|
||||
@ -456,6 +456,9 @@ ko:
|
||||
label_column_workflow: 업무흐름
|
||||
label_column_author: 저자
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: 내 잠긴 파일
|
||||
|
||||
@ -456,6 +456,9 @@ nl:
|
||||
label_column_workflow: Workflow
|
||||
label_column_author: Auteur
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -456,6 +456,9 @@ pl:
|
||||
label_column_workflow: Akceptacje
|
||||
label_column_author: Autor
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -456,6 +456,9 @@ pt-BR:
|
||||
label_column_workflow: Fluxo
|
||||
label_column_author: Autor
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -456,6 +456,9 @@ sl:
|
||||
label_column_workflow: Potek dela
|
||||
label_column_author: Avtor
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -455,6 +455,9 @@ zh-TW:
|
||||
label_column_workflow: 流程
|
||||
label_column_author: 作者
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
@ -456,6 +456,9 @@ zh:
|
||||
label_column_workflow: 工作流程
|
||||
label_column_author: 作者
|
||||
|
||||
label_dmsf_global_menu_disabled: Global DMS menu disabled
|
||||
note_dmsf_global_menu_disabled: If yes, DMS menu item is not present in the top menu.
|
||||
|
||||
easy_pages:
|
||||
modules:
|
||||
dmsf_locked_documents: My locked documents
|
||||
|
||||
3
init.rb
3
init.rb
@ -62,7 +62,8 @@ Redmine::Plugin.register :redmine_dmsf do
|
||||
'dmsf_projects_as_subfolders' => nil,
|
||||
'only_approval_zero_minor_version' => '0',
|
||||
'dmsf_max_notification_receivers_info' => 10,
|
||||
'office_bin' => 'libreoffice'
|
||||
'office_bin' => 'libreoffice',
|
||||
'dmsf_global_menu_disabled' => 0
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user