From ed71944b1775f5f14fa097617e46f223595cef5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Tue, 6 Aug 2024 10:29:20 +0200 Subject: [PATCH] Also available in with no options --- app/views/dmsf/_main.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/dmsf/_main.html.erb b/app/views/dmsf/_main.html.erb index 7618f3db..8a182e47 100644 --- a/app/views/dmsf/_main.html.erb +++ b/app/views/dmsf/_main.html.erb @@ -82,9 +82,11 @@ <%= context_menu %> -<% unless @folder && @folder.system %> +<% if !@folder&.system && (@project || Setting.plugin_redmine_dmsf['dmsf_webdav'].present?) %> <% other_formats_links do |f| %> - <%= f.link_to 'CSV', url: { action: :show, id: @project, folder_id: @folder, encoding: Encoding::UTF_8 } if @project %> + <% if @project %> + <%= f.link_to 'CSV', url: { action: :show, id: @project, folder_id: @folder, encoding: Encoding::UTF_8 } %> + <% end %> <% if Setting.plugin_redmine_dmsf['dmsf_webdav'].present? %> <%= link_to 'WebDAV', webdav_url(@project, @folder), class: 'webdav' %>