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 <% if @search_sharing.any? %>
14 <% linktext = "Shared" %>
15 <% btnstyle = "btn-success" %>
17 <% linktext = "Share" %>
18 <% btnstyle = "btn-info" %>
20 <%= link_to linktext, sharing_popup_collection_url(id: @object.uuid), {class: "btn #{btnstyle}", :remote => true, 'data-toggle' => "modal", 'data-target' => '#collection-sharing-modal-window'} %>
21 <span style="padding-left: 1em">Collection storage status:</span>
22 <%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %>
29 <table class="table table-condensed table-fixedlayout">
42 <th style="text-align:right">size</th>
46 <% if @object then @object.files.sort_by{|f|[f[0],f[1]]}.each do |file| %>
47 <% file_path = CollectionsHelper::file_path file %>
50 <%= check_box_tag 'uuids[]', @object.uuid+'/'+file_path, false, {
51 :class => 'persistent-selection',
52 :friendly_type => "File",
53 :friendly_name => "#{@object.uuid}/#{file_path}",
54 :href => "#{url_for controller: 'collections', action: 'show', id: @object.uuid }/#{file_path}",
55 :title => "Click to add this item to your selection list"
63 <%= link_to (if CollectionsHelper::is_image file[1]
64 image_tag "#{url_for @object}/#{file_path}", class: "file-list-inline-image"
68 {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'},
72 <td style="text-align:right">
73 <%= raw(human_readable_bytes_html(file[2])) %>
77 <div style="display:inline-block">
78 <%= 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'} %>
86 <% content_for :footer_html do %>
87 <div id="collection-sharing-modal-window" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>