Merge branch 'master' into 2272-setup-user-in-workbench
[arvados.git] / apps / workbench / app / views / collections / _show_source_data.html.erb
1 <table class="table table-bordered table-striped">
2   <thead>
3     <tr class="contain-align-left">
4       <th>
5         collection
6       </th><th class="data-size">
7         data size
8       </th><th>
9         storage
10       </th><th>
11         origin
12       </th>
13     </tr>
14   </thead>
15   <tbody>
16
17     <% @sourcedata.values.each do |sourcedata| %>
18
19     <tr class="collection">
20       <td>
21         <tt class="label"><%= sourcedata[:uuid] %></tt>
22       </td><td class="data-size">
23         <%= raw(human_readable_bytes_html(sourcedata[:collection].data_size)) if sourcedata[:collection] and sourcedata[:collection].data_size %>
24       </td><td>
25         <% if @protected[sourcedata[:uuid]] %>
26         <span class="label label-success">keep</span>
27         <% else %>
28         <span class="label label-danger">cache</span>
29         <% end %>
30       </td><td>
31         <% if sourcedata[:data_origins] %>
32         <% sourcedata[:data_origins].each do |data_origin| %>
33         <span class="deemphasize"><%= data_origin[0] %></span>
34         <%= data_origin[2] %>
35         <br />
36         <% end %>
37         <% end %>
38       </td>
39     </tr>
40
41     <% end %>
42
43   </tbody>
44 </table>