1 <div class="selection-action-container">
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'
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,
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-contents tbody"/>
28 selected_objects_and_names = []
29 specific_data_kinds = ['arvados#collection', 'arvados#group', 'arvados#job', 'arvados#pipelineInstance', 'arvados#pipelineTemplate']
30 @objects_and_names.each do |object, name_link|
31 if !data_kind.any? && !specific_data_kinds.include?(object.kind)
32 selected_objects_and_names << [object, name_link]
33 elsif data_kind.include?(object.kind)
34 selected_objects_and_names << [object, name_link]
39 <table class="table table-condensed table-fixedlayout arv-index arv-project-contents" style="overflow-x: hidden">
44 <tbody data-infinite-scroller="#Contents-scroll" data-infinite-content-href="<%= url_for(format: :json, partial: :contents_rows, offset: next_page_offset) if next_page_offset %>">
45 <%= render partial: 'show_contents_rows', locals: {project: @object, objects_and_names: selected_objects_and_names} %>