<% provider_contents.each_with_index do |file, index| %> <% path = browse_everything_engine.contents_path(provider_name, file.id) %> <% parent = params[:parent] %> <% if file.container? || provider.config[:max_upload_file_size].blank? %> <% disabled = false %> <% else %> <% max_size = provider.config[:max_upload_file_size].to_i %> <% disabled = file.size > max_size %> <% end %> <% if file.container? %> <% else %> <% end %> <% end %>
Name Select All? Size Kind Modified
<% if disabled %> <%= file.container? ? ', folder' : ', file' %> <% else %> <%= link_to browse_everything_engine.contents_path(provider_name, file.id), class: 'ev-link' do %> <%= check_box_tag(:select_all, "0", false, class: "ev-select-all") %> <%= check_box_tag(file.id.to_s.parameterize, "0", false, class: "ev-select-file") %> <%= number_to_human_size(file.size).sub(/Bytes/,'bytes') %> <%= file.type %> <%= file.mtime.strftime('%F %R') %>