Advertise filters param in discovery doc.
[arvados.git] / apps / workbench / app / views / collections / _show_files.html.erb
1 <table class="table table-condensed table-fixedlayout">
2   <colgroup>
3     <col width="35%" />
4     <col width="40%" />
5     <col width="15%" />
6     <col width="10%" />
7   </colgroup>
8   <thead>
9     <tr>
10       <th>path</th>
11       <th>file</th>
12       <th style="text-align:right">size</th>
13       <th>d/l</th>
14     </tr>
15   </thead><tbody>
16     <% if @object then @object.files.sort_by{|f|[f[0],f[1]]}.each do |file| %>
17     <% file_path = "#{file[0]}/#{file[1]}" %>
18     <tr>
19       <td>
20         <%= file[0] %>
21       </td>
22
23       <td>
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'} %>
25       </td>
26
27       <td style="text-align:right">
28         <%= raw(human_readable_bytes_html(file[2])) %>
29       </td>
30
31       <td>
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'} %>
34         </div>
35       </td>
36     </tr>
37     <% end; end %>
38   </tbody>
39 </table>