+<% order = nil if local_assigns[:order].nil? %>
+<% sortable_columns = {} if local_assigns[:sortable_columns].nil? %>
<div class="selection-action-container">
<div class="row">
<div class="col-sm-5">
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
- <li><%= link_to "Combine selected collections into a new collection", '#',
+ <li><%= link_to "Create new collection with selected collections", '#',
'data-href' => combine_selected_path(
- action_data: {selection_param: 'project'}.to_json
+ action_data: {current_project_uuid: @object.uuid}.to_json
),
'id' => 'combine_selections_button',
'data-selection-param-name' => 'selection[]',
<col width="60%" style="width: 60%;" />
<col width="40%" style="width: 40%;" />
</colgroup>
- <tbody data-infinite-scroller="#<%= tab_pane %>-scroll" data-infinite-content-href="<%= url_for partial: :contents_rows %>" data-infinite-content-params-projecttab="<%= {filters: filters}.to_json %>">
+ <tbody data-infinite-scroller="#<%= tab_pane %>-scroll" data-infinite-content-href="<%= url_for partial: :contents_rows %>" data-infinite-content-params-projecttab="<%= {filters: filters, order: order}.to_json %>" data-infinite-content-params-attr="projecttab">
</tbody>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
- <th>name</th>
- <th>description</th>
+ <% sort_order = sortable_columns['name'] %>
+ <th <% if !sort_order.nil? %>
+ data-sort-order='<%= raw sort_order %>'
+ <% end %> >
+ name
+ </th>
+ <% sort_order = sortable_columns['description'] %>
+ <th <% if !sort_order.nil? %>
+ data-sort-order='<%= raw sort_order %>'
+ <% end %> >
+ description
+ </th>
</tr>
</thead>
</table>