<% if @module_key == 'asset' %> <% end %>

<%= generate_breadcrumb %>

<%=t('file_manager.recycle_bin')%> <% 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.updated_at") %><%= t("file_manager.rename") %> <%= t("file_manager.delete") %> <%= t("download") %> <%= t("file_manager.upload") %> <%= t("file_manager.link") %>
<% 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[:id]} do %> <%= fa_icon (entry[:type] == :file ? 'file' : 'folder') %> <%= entry[:entry] %> <% end %> <%= entry[:size] %> <%= entry[:date] %> <% if entry[:is_editable] && entry[:entry] != './' && entry[:entry] != '../' %> <%= link_to 'javascript:void(0)', class: 'rename', onclick: "rename('#{entry[:id]}', '#{URI.decode(entry[:relative])}')" do %> <%= fa_icon 'i-cursor' %> <%= t("file_manager.rename") %> <% end %> <% end %> <% if entry[:is_editable] && entry[:entry] != './' && entry[:entry] != '../' %> <%= link_to "javascript:void(0)", class: 'delete', data: { "tmp-confirm"=> "Are you sure you want to delete `#{URI.decode(entry[:relative])}`?", "link"=> admin_file_manager_path(entry[:id]) } do %> <%= fa_icon 'trash' %> <%= t("file_manager.delete") %> <% end %> <% end %> <% if entry[:id] && entry[:is_file] %> " target="_blank"><%= fa_icon 'download' %> <%= t("download") %> <% end %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag(:div, paginate(@uploads), class: "pagination pagination-centered") end %>