1 <table class="table table-condensed table-fixedlayout">
12 <th style="text-align:right">size</th>
16 <% if @object then @object.files.sort_by{|f|[f[0],f[1]]}.each do |file| %>
17 <% file_path = "#{file[0]}/#{file[1]}" %>
24 <%= link_to file[1], {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'}, {title: 'View in browser'} %>
27 <td style="text-align:right">
28 <%= raw(human_readable_bytes_html(file[2])) %>
32 <div style="display:inline-block">
33 <%= 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'} %>