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 <span id="sharing-button">
14 <%= render partial: 'sharing_button' %>
16 <span style="padding-left: 1em">Collection storage status:</span>
17 <%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %>
24 <table class="table table-condensed table-fixedlayout">
37 <th style="text-align:right">size</th>
41 <% if @object then @object.files.sort_by{|f|[f[0],f[1]]}.each do |file| %>
42 <% file_path = CollectionsHelper::file_path file %>
45 <%= check_box_tag 'uuids[]', @object.uuid+'/'+file_path, false, {
46 :class => 'persistent-selection',
47 :friendly_type => "File",
48 :friendly_name => "#{@object.uuid}/#{file_path}",
49 :href => "#{url_for controller: 'collections', action: 'show', id: @object.uuid }/#{file_path}",
50 :title => "Click to add this item to your selection list"
58 <%= link_to (if CollectionsHelper::is_image file[1]
59 image_tag "#{url_for @object}/#{file_path}", class: "file-list-inline-image"
63 {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'},
67 <td style="text-align:right">
68 <%= raw(human_readable_bytes_html(file[2])) %>
72 <div style="display:inline-block">
73 <%= 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'} %>
81 <% content_for :footer_html do %>
82 <div id="collection-sharing-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>