% content_for :page_heading do %>
<%= t('.filename') %> (<%= t('.right_click_for_link') %>) | <%= t('.content_type') %> | <%= t('.file_size') %> | <%= t('.date') %> | ||
---|---|---|---|---|---|
<%= t('.no_resources') %> | |||||
<% if upload.mime =~ /image/ %>
<%= image_tag(upload.upload.thumb.url) %>
<% else %>
<%= link_to(upload.upload_url, upload.upload_url) %>
<% end %>
<% if upload.mime =~ /image/ %> <%= link_to(t('.thumbnail'), upload.upload.thumb.url) %> | <%= link_to(t('.medium_size'), upload.upload.medium.url) %> | <%= link_to(t('.original_size'), upload.upload.url) %> | <% end %> <%= link_to(t('.delete'), { action: 'destroy', id: upload.id, search: params[:search], page: params[:page] }, { confirm: t('.are_you_sure'), method: :delete }) %> |
<%= upload.mime %> | <%= begin h upload.size rescue StandardError 0 end %> bytes | <%= l(upload.created_at, format: :short) %> |