1 <% content_for :css do %>
2 .file-list-inline-image {
8 <% content_for :tab_line_buttons do %>
10 <div class="col-md-6"></div>
11 <div class="col-md-6">
12 <div class="pull-right">
13 Collection storage status:
14 <%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %>
20 <table class="table table-condensed table-fixedlayout">
33 <th style="text-align:right">size</th>
37 <% if @object then @object.files.sort_by{|f|[f[0],f[1]]}.each do |file| %>
38 <% file_path = CollectionsHelper::file_path file %>
41 <%= check_box_tag 'uuids[]', @object.uuid+'/'+file_path, false, {
42 :class => 'persistent-selection',
43 :friendly_type => "File",
44 :friendly_name => "#{@object.uuid}/#{file_path}",
45 :href => "#{url_for controller: 'collections', action: 'show', id: @object.uuid }/#{file_path}",
46 :title => "Click to add this item to your selection list"
54 <%= link_to (if CollectionsHelper::is_image file[1]
55 image_tag "#{url_for @object}/#{file_path}", class: "file-list-inline-image"
59 {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'},
63 <td style="text-align:right">
64 <%= raw(human_readable_bytes_html(file[2])) %>
68 <div style="display:inline-block">
69 <%= link_to raw('<i class="glyphicon glyphicon-download-alt"></i>'), {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'attachment'}, {class: 'btn btn-info btn-sm', title: 'Download'} %>