<%= generate_breadcrumb %>

<% if @directory.count != 0 %> <%=t('file_manager.recover_all')%> <%=t('file_manager.clean_up_recycle_bin')%> <% end %> <% if @display_module_name %> <% end %> <% unless @only_select_folder %> <% end %> <% @directory.each do |entry| %> <% next if @relative_path.blank? && entry[:relative] == '..' %> <% if @display_module_name %> <% end %> <% unless @only_select_folder %> <% end %> <% end %>
<%= t("file_manager.module") %><%= t("file_manager.name") %> <%= t("file_manager.size") %> <%= t("file_manager.deleted_at") %> <%= t("file_manager.updated_at") %><%= t("file_manager.recover") %> <%= t("file_manager.delete_permanently") %>
<% module_info = @module_info_dict[entry[:module]] module_title = (module_info ? module_info[:title] : nil) %> <% if module_title %> <%= link_to(module_title, "javascript:void(0)", class: "module-key", data: {'key'=>entry[:module]}) %> <% end %> <%= link_to "javascript:void(0)", class: entry[:type].to_s, data: {'entry'=>entry[:entry], 'id'=> entry[:upload_id]} do %> <%= fa_icon (entry[:type] == :file ? 'file' : 'folder') %> <%= entry[:name] %> <% end %> <%= entry[:size] %> <%= entry[:deleted_at] %> <%= entry[:date] %> <% if entry[:entry] != './' && entry[:entry] != '../' %> <%= link_to 'javascript:void(0)', class: 'recover', data: { "tmp-confirm"=> t("file_manager.are_you_sure_to_recover"), "link"=> recover_admin_file_manager_path(entry[:id]) } do %> <%= fa_icon 'trash-restore' %> <%= t("file_manager.recover") %> <% end %> <% end %> <% if entry[:entry] != './' && entry[:entry] != '../' %> <%= link_to "javascript:void(0)", class: 'delete', data: { "tmp-confirm"=> t("file_manager.are_you_sure_you_want_to_delete_file_permanently",:file=>entry[:org_path]), "link"=> admin_file_manager_path(entry[:id], permanent: true) } do %> <%= fa_icon 'trash' %> <%= t("file_manager.delete_permanently") %> <% end %> <% end %>
<%= content_tag(:div, paginate(@trashes), class: "pagination pagination-centered") %>
<% if @thread %> <% end %>