Sha256: 550d81f7e2741a9ebe9f14aba26a43e1871917f0305c4ba79f3a0fb4f2da1e12

Contents?: true

Size: 1.66 KB

Versions: 8

Compression:

Stored size: 1.66 KB

Contents

<% unless file.relative_parent_path? %>

  <% if file.container? || provider.config[:max_upload_file_size].blank? #never disable a folder or if no maximum is set
     disabled = false
   else
     max_size = provider.config[:max_upload_file_size].to_i
     disabled = file.size > max_size
   end
  %>

<tr role="row" tabindex="-1" data-ev-location="<%= file.location %>" data-tt-id="<%=path%>" data-tt-parent-id="<%=parent%>" data-tt-branch="<%=file.container? ? 'true' : 'false'%>">
  <td role="gridcell" class="<%=file.container? ? 'ev-container' : 'ev-file'%> ev-file-name">
    <% if disabled %>
      <span title="<%= t('browse_everything.size_disabled', max_size: number_to_human_size(max_size)) %>"class="<%=file.container? ? 'folder' : 'file'%>" aria-hidden="true">
      <%= file.name %>
      </span>
      <span class="sr-only"><%= file.container? ? ', folder' : ', file' %> </span>
    <% else %>
      <%= link_to browse_everything_engine.contents_path(provider_name,file.id), :class=>'ev-link' do %>
        <span class="<%=file.container? ? 'folder' : 'file'%>" aria-hidden="true"/>
        <%= file.name %>
        <span class="sr-only"><%= file.container? ? ', folder' : ', file' %> </span>
      <% end %>
    <% end %>
  </td>
  <td role="gridcell" class="ev-directory-select">
    <%= check_box_tag(:select_all, "0", false, class: "ev-select-all") if file.container? %>
  </td>
  <td role="gridcell" class="ev-file-size">
    <%= number_to_human_size(file.size).sub(/Bytes/,'bytes') %>
  </td>
  <td role="gridcell" class="ev-file-kind">
    <%= file.type %>
  </td>
  <td role="gridcell" class="ev-file-date">
    <%= file.mtime.strftime('%F %R') %>
  </td>
</tr>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
browse-everything-0.10.5 app/views/browse_everything/_file.html.erb
browse-everything-0.10.4 app/views/browse_everything/_file.html.erb
browse-everything-0.10.3 app/views/browse_everything/_file.html.erb
browse-everything-0.10.2 app/views/browse_everything/_file.html.erb
browse-everything-0.10.1 app/views/browse_everything/_file.html.erb
browse-everything-0.10.0 app/views/browse_everything/_file.html.erb
browse-everything-0.9.1 app/views/browse_everything/_file.html.erb
browse-everything-0.9.0 app/views/browse_everything/_file.html.erb