1 <% sortable_columns = {} if local_assigns[:sortable_columns].nil? %>
2 <div class="selection-action-container">
5 <div class="btn-group btn-group-sm">
6 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection <span class="caret"></span></button>
7 <ul class="dropdown-menu" role="menu">
8 <% if Collection.creatable? %>
9 <li><%= link_to "Create new collection with selected collections", '#',
10 'data-href' => combine_selected_path(
11 action_data: {current_project_uuid: @object.uuid}.to_json
13 'id' => 'combine_selections_button',
15 'data-selection-param-name' => 'selection[]',
16 'data-selection-action' => 'combine-project-contents',
17 'data-toggle' => 'dropdown'
20 <li><%= link_to "Compare selected", '#',
21 'data-href' => compare_pipeline_instances_path,
22 'data-selection-param-name' => 'uuids[]',
23 'data-selection-action' => 'compare',
24 'data-toggle' => 'dropdown'
26 <% if Collection.creatable? %>
27 <li><%= link_to "Copy selected...", '#',
28 'data-href' => choose_projects_path(
29 title: 'Copy selected items to...',
32 action_href: actions_path,
33 action_method: 'post',
34 action_data_from_params: ['selection'],
36 copy_selections_into_project: true,
37 selection_param: 'uuid',
38 success: 'page-refresh'}.to_json),
39 'data-remote' => true,
40 'data-selection-param-name' => 'selection[]',
41 'data-selection-action' => 'copy',
42 'data-toggle' => 'dropdown'
45 <% if @object.editable? %>
46 <li><%= link_to "Move selected...", '#',
47 'data-href' => choose_projects_path(
48 title: 'Move selected items to...',
51 action_href: actions_path,
52 action_method: 'post',
53 action_data_from_params: ['selection'],
55 move_selections_into_project: true,
56 selection_param: 'uuid',
57 success: 'page-refresh'}.to_json),
58 'data-remote' => true,
59 'data-selection-param-name' => 'selection[]',
60 'data-selection-action' => 'move',
61 'data-toggle' => 'dropdown'
63 <li><%= link_to "Remove selected", '#',
65 'data-href' => url_for(action: :remove_items),
66 'data-selection-param-name' => 'item_uuids[]',
67 'data-selection-action' => 'remove',
68 'data-remote' => true,
69 'data-toggle' => 'dropdown'
75 <div class="col-sm-4 pull-right">
76 <input type="text" class="form-control filterable-control" placeholder="Search project contents" data-filterable-target="table.arv-index.arv-project-<%= tab_pane %> tbody"/>
80 <table class="table table-condensed arv-index arv-project-<%= tab_pane %>">
82 <col width="0*" style="max-width: fit-content;" />
83 <col width="0*" style="max-width: fit-content;" />
84 <col width="0*" style="max-width: fit-content;" />
85 <col width="60%" style="width: 60%;" />
86 <col width="40%" style="width: 40%;" />
88 <tbody data-infinite-scroller="#<%= tab_pane %>-scroll" data-infinite-content-href="<%= url_for partial: :contents_rows %>" data-infinite-content-params-projecttab="<%= local_assigns.select{|k| [:order, :limit, :filters].include? k }.to_json %>" data-infinite-content-params-attr="projecttab">
95 <% sort_order = sortable_columns['name'].gsub(/\s/,'') if sortable_columns['name'] %>
96 <th <% if !sort_order.nil? %>
97 data-sort-order='<%= sort_order %>'
101 <% sort_order = sortable_columns['description'].gsub(/\s/,'') if sortable_columns['description'] %>
102 <th <% if !sort_order.nil? %>
103 data-sort-order='<%= sort_order %>'