2800: Allow api() caller to specify api host and token.
[arvados.git] / apps / workbench / app / views / projects / _show_tab_contents.html.erb
1 <div class="selection-action-container">
2   <div class="row">
3     <div class="col-sm-5">
4       <div class="btn-group btn-group-sm">
5         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <i class="fa fa-fw fa-long-arrow-down "></i></button>
6         <ul class="dropdown-menu" role="menu">
7           <li><%= link_to "Compare selected", '#',
8                   'data-href' => compare_pipeline_instances_path,
9                   'data-selection-param-name' => 'uuids[]',
10                   'data-selection-action' => 'compare'
11             %></li>
12           <li><%= link_to "Remove selected", '#',
13                   'data-href' => url_for(action: :remove_items),
14                   'data-selection-param-name' => 'item_uuids[]',
15                   'data-selection-action' => 'remove',
16                   'data-remote' => true,
17                   'method' => 'delete'
18             %></li>
19         </ul>
20       </div>
21     </div>
22     <div class="col-sm-4 pull-right">
23       <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_name %> tbody"/>
24     </div>
25   </div>
26
27   <table class="table table-condensed table-fixedlayout arv-index arv-project-<%= tab_name %>" style="overflow-x: hidden">
28     <colgroup>
29       <col width="40%" />
30       <col width="60%" />
31     </colgroup>
32     <tbody data-infinite-scroller="#<%= tab_name %>-scroll" data-infinite-content-href="<%= url_for(format: :json, partial: :contents_rows, offset: page_offset, filters: "#{filters}") if page_offset %>">
33       <%= render partial: 'show_contents_rows', locals: {project: @object, objects_and_names: objects_and_names} %>
34     </tbody>
35     <thead>
36       <tr>
37         <th>
38         </th>
39         <th>
40           description
41         </th>
42       </tr>
43     </thead>
44   </table>
45
46 </div>