Add a warning about searhingin sub-folders #1596

This commit is contained in:
1redmine 2025-05-22 12:38:54 +02:00
parent 0240228099
commit 545a4519d1
18 changed files with 45 additions and 6 deletions

View File

@ -93,6 +93,10 @@ class DmsfController < ApplicationController
if @query.valid? if @query.valid?
respond_to do |format| respond_to do |format|
format.html do format.html do
# Warn about searching in sub-folders
if @folder && params['set_filter'].present? && params['f'].present?
flash[:warning] = l(:notice_search_in_subfolders)
end
@dmsf_count = @query.dmsf_count @dmsf_count = @query.dmsf_count
@dmsf_pages = Paginator.new @dmsf_count, per_page_option, params['page'] @dmsf_pages = Paginator.new @dmsf_count, per_page_option, params['page']
render layout: !request.xhr? render layout: !request.xhr?

View File

@ -155,7 +155,7 @@ cs:
permission_force_file_unlock: Vynucené odemknutí souboru permission_force_file_unlock: Vynucené odemknutí souboru
permission_manage_workflows: Spravovat schvalovací procesy permission_manage_workflows: Spravovat schvalovací procesy
permission_file_delete: Mazat dokumenty permission_file_delete: Mazat dokumenty
permission_display_system_folders: Zobrazit systémové adresáře permission_display_system_folders: Zobrazit systémové složky
permission_file_approval: File approval permission_file_approval: File approval
permission_email_documents: Email documents permission_email_documents: Email documents
label_file: Soubor label_file: Soubor
@ -366,7 +366,7 @@ cs:
field_dmsf_not_inheritable: Není dědičné field_dmsf_not_inheritable: Není dědičné
label_webdav_use_project_names: Použít názvy projektů label_webdav_use_project_names: Použít názvy projektů
note_webdav_use_project_names: Použít názvy projektů místo identifikátorů pro názvy adresářů. note_webdav_use_project_names: Použít názvy projektů místo identifikátorů pro názvy složek.
label_last_approver: Poslední schvalovatel label_last_approver: Poslední schvalovatel
@ -389,8 +389,8 @@ cs:
např.: XAPIAN_CJK_NGRAM=true ruby plugins/redmine_dmsf/extra/xapian_indexer.rb -fv" např.: XAPIAN_CJK_NGRAM=true ruby plugins/redmine_dmsf/extra/xapian_indexer.rb -fv"
label_dmsf_fast_links: Rychlé odkazy label_dmsf_fast_links: Rychlé odkazy
text_dmsf_fast_links_info: Při vytváření odkazů budete moci zadat přímo ID cílového adresáře za účelem zrychlení text_dmsf_fast_links_info: Při vytváření odkazů budete moci zadat přímo ID cílové složky za účelem zrychlení
procesu vytváření odkazů nebo kopírování dokumentů a adresářů. procesu vytváření odkazů nebo kopírování dokumentů a složek.
label_dmsf_permissions: Povolený přístup pro label_dmsf_permissions: Povolený přístup pro
label_inherited_permissions: Zděděný přístup pro label_inherited_permissions: Zděděný přístup pro
@ -410,14 +410,14 @@ cs:
dmsf_webdav_ignore_1b_file_for_authentication: Ignorovat 1b soubor poslaný kvůli autentizaci dmsf_webdav_ignore_1b_file_for_authentication: Ignorovat 1b soubor poslaný kvůli autentizaci
dmsf_webdav_ignore_1b_file_for_authentication_info: Total Commander WebDAV plugin dmsf_webdav_ignore_1b_file_for_authentication_info: Total Commander WebDAV plugin
text_not_empty: Adresář není prázdný. text_not_empty: Složka není prázdná.
label_scroll_down: Posunout se dolů label_scroll_down: Posunout se dolů
note_webdav_disabled: WebDAV je zablokovaný. Kontaktujte administrátora. note_webdav_disabled: WebDAV je zablokovaný. Kontaktujte administrátora.
dmsf_copy: "Kopie (%{n})" dmsf_copy: "Kopie (%{n})"
label_empty_trash_bin: Vysypat koš label_empty_trash_bin: Vysypat koš
label_dmsf_projects_as_subfolders: Podprojekty jako podaresáře label_dmsf_projects_as_subfolders: Podprojekty jako podaresáře
note_dmsf_projects_as_subfolders: Přidá podprojekty jako podadresáře do pohledu DMS note_dmsf_projects_as_subfolders: Přidá podprojekty jako podsložky do pohledu DMS
only_approval_zero_minor_version: Schvalovat pouze hlavní verze only_approval_zero_minor_version: Schvalovat pouze hlavní verze
title_assignment_minor: Přiřazení není dovoleno, podružná verze musí být nula title_assignment_minor: Přiřazení není dovoleno, podružná verze musí být nula
title_start_minor: Zahájení není dovoleno, podružná verze musí být nula title_start_minor: Zahájení není dovoleno, podružná verze musí být nula
@ -492,6 +492,8 @@ cs:
label_dmsf_commit: Potvrdit label_dmsf_commit: Potvrdit
label_dmsf_upload_commit: Nahrát a potvrdit label_dmsf_upload_commit: Nahrát a potvrdit
notice_search_in_subfolders: Vyhledávání v podsložkách není rekurzivní. Pro rekurzivní vyhledávání běžte do nejvyšší úrovně.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -487,6 +487,9 @@ de:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Hochladen und Commit label_dmsf_upload_commit: Hochladen und Commit
notice_search_in_subfolders: Die Suche in Unterordnern ist nicht rekursiv. Für eine rekursive Suche gehen Sie auf die
oberste Ebene.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: Von mir gesperrte Dokumente dmsf_locked_documents: Von mir gesperrte Dokumente

View File

@ -491,6 +491,8 @@ en:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -488,6 +488,8 @@ es:
text_dmsf_webdav_digest_reset: You are supposed to enter your password to generate a new DMS WebDAV digest. text_dmsf_webdav_digest_reset: You are supposed to enter your password to generate a new DMS WebDAV digest.
notice_webdav_digest_reset: Your DMS WebDAV digest was reset. notice_webdav_digest_reset: Your DMS WebDAV digest was reset.
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit

View File

@ -470,6 +470,8 @@ fa:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: اسناد قفل شده‌ی من dmsf_locked_documents: اسناد قفل شده‌ی من

View File

@ -492,6 +492,8 @@ fr:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -492,6 +492,8 @@ hu:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -491,6 +491,8 @@ it: # Italian strings thx 2 Matteo Arceci!
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -493,6 +493,8 @@ ja:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: 自分がロック中の文書 dmsf_locked_documents: 自分がロック中の文書

View File

@ -491,6 +491,8 @@ ko:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: 내 잠긴 파일 dmsf_locked_documents: 내 잠긴 파일

View File

@ -491,6 +491,8 @@ nl:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -490,6 +490,8 @@ pl:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -491,6 +491,8 @@ pt-BR:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -492,6 +492,8 @@ sl:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -493,6 +493,8 @@ uk:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: Мої заблоковані документи dmsf_locked_documents: Мої заблоковані документи

View File

@ -490,6 +490,8 @@ zh-TW:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents

View File

@ -492,6 +492,8 @@ zh:
label_dmsf_commit: Commit label_dmsf_commit: Commit
label_dmsf_upload_commit: Upload and commit label_dmsf_upload_commit: Upload and commit
notice_search_in_subfolders: Searching in sub-folders is not recursive. For a recursive search go to the top level.
easy_pages: easy_pages:
modules: modules:
dmsf_locked_documents: My locked documents dmsf_locked_documents: My locked documents