<% files.each do |file| key = params[:search] ? File.join(file["folder_path"], file["name"]) : file["name"] %> <% if file['is_folder'] %>
<%= file['name'] %>
<% if @show_file_actions %>
<% end %>
<% else %> <% next if @media_formats.present? && !@media_formats.include?(file["file_type"]) && !@media_formats.include?(file["url"].split('.').last) %> <% file['url'] = download_private_file_cama_admin_media_url(file: file[:url]) if params[:private].present? %>
_format" data-key="<%= key %>">
<% case file["file_type"] %> <% when "image" %> " alt=""> <% when "audio" %> <% when "video" %> <% when "compress" %> <% when "doc" %> <% when "document" %> <% else %> <% end %>
<%= file["name"] %>
<% if file['file_type'] == 'image' && File.extname(file['name']).downcase != '.gif' %> <% args = {res: true, file: file}; hooks_run('file_manager_edit_file', args) %> <% if args[:res] %> > <% end %> <% end %> <% if @show_file_actions %> <% args = {res: true, file: file}; hooks_run('file_manager_del_file', args) %> <% if args[:res] %> <% end %> <% end %>
<% end %> <% end %>