Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / trash_items / _show_recent_trash.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <div class="container selection-action-container" style="width: 100%">
6   <div class="col-md-2 pull-left">
7     <div class="btn-group btn-group-sm">
8       <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
9       <ul class="dropdown-menu" role="menu">
10         <li><%= link_to "Un-trash selected items", '#',
11                 method: :post,
12                 remote: true,
13                 'id' => 'untrash_selected_items',
14                 'data-href' => untrash_items_trash_items_path,
15                 'data-selection-param-name' => 'selection[]',
16                 'data-selection-action' => 'untrash-selected-items',
17                 'data-toggle' => 'dropdown'
18           %></li>
19       </ul>
20     </div>
21   </div>
22   <div class="col-md-4 pull-right">
23     <input type="text" class="form-control filterable-control recent-trash-items"
24            placeholder="Search trash"
25            data-filterable-target="#recent-trash-items"
26            value="<%= params[:search] %>" />
27   </div>
28
29   <div>
30     <table id="trash-index" class="topalign table table-condensed table-fixedlayout">
31       <colgroup>
32         <col width="5%" />
33         <col width="20%" />
34         <col width="15%" />
35         <col width="15%" />
36         <col width="10%" />
37         <col width="30%" />
38         <col width="5%" />
39       </colgroup>
40
41       <thead>
42         <tr class="contain-align-left">
43           <th></th>
44           <th>Name</th>
45           <th>Trashed at</th>
46           <th title="After this time, no longer available to be recovered from Trash">Permanently<br/>Deleted At</th>
47           <th>Owner</th>
48           <th>Contents</th>
49           <th></th>
50         </tr>
51       </thead>
52
53       <tbody data-infinite-scroller="#recent-trash-items" id="recent-trash-items"
54         data-infinite-content-href="<%= url_for partial: :trash_rows %>" >
55       </tbody>
56     </table>
57   </div>
58 </div>