add user#is_active flag
[arvados.git] / apps / workbench / app / views / groups / show.html.erb
1 <ul class="nav nav-tabs">
2   <li class="active"><a href="#properties" data-toggle="tab">Properties</a></li>
3   <li><a href="#collections" data-toggle="tab">Collections (<%= @collections.count %>)</a></li>
4 </ul>
5
6 <div class="tab-content">
7   <div id="properties" class="tab-pane fade in active">
8     <%= render partial: 'application/arvados_object' %>
9   </div>
10   <div id="collections" class="tab-pane fade">
11     <table class="table table-condensed table-hover">
12       <thead>
13         <tr>
14           <th style="text-align: right">size</th>
15           <th>names</th>
16           <th>collection</th>
17           <th>keep</th>
18         </tr>
19       </thead><tbody>
20         <% if @collections then @collections.each do |collection| %>
21         <tr>
22           <td style="text-align: right">
23             <%= raw(human_readable_bytes_html(collection.total_bytes)) %>
24           </td><td>
25             <% if @pgp_hu_id[collection.uuid] %>
26             <a class="label" href="https://my.personalgenomes.org/profile/<%= @pgp_hu_id[collection.uuid] %>"><tt><%= @pgp_hu_id[collection.uuid] %></tt></a>
27             <% end %>
28             <% (@names[collection.uuid] || []).compact.each do |name| %>
29             <%= name %><br />
30             <% end %>
31           </td><td>
32             <%= link_to_if_arvados_object collection %>
33           </td><td>
34             <% if @keep_flag[collection.uuid] %>
35             <span class="badge badge-success">&#x2714;</span>
36             <% else %>
37             <span class="badge badge-warning">&#x2716;</span>
38             <% end %>
39           </td>
40         </tr>
41         <% end; end %>
42       </tbody>
43       <tfoot>
44         <tr class="info" style="border-top:2px solid #000">
45           <td style="text-align: right">
46             <%= raw(human_readable_bytes_html(@collections_total_bytes)) %>
47           </td>
48           <td></td>
49           <td></td>
50           <td></td>
51         </tr>
52       </tfoot>
53     </table>
54   </div>
55 </div>