Merge branch 'master' into 1971-show-image-thumbnails
[arvados.git] / apps / workbench / app / views / collections / _show_recent.html.erb
1 <% content_for :tab_line_buttons do %>
2 <div class="pull-right" style="width: 30%">
3   <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
4   <div class="input-group">
5     <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search collections' %>
6     <span class="input-group-btn">
7       <%= button_tag(class: 'btn btn-info') do %>
8       <span class="glyphicon glyphicon-search"></span>
9       <% end %>
10     </span>
11   </div>  
12   <% end %>
13 </div>
14 <% end %>
15
16 <%= render partial: "paging", locals: {results: @collections, object: @object} %>
17
18 <div style="padding-right: 1em">
19
20 <%= form_tag do |f| %>
21
22 <table id="collections-index" class="topalign table table-condensed table-fixedlayout"> <!-- table-fixed-header-row -->
23   <colgroup>
24     <col width="4%" />
25     <col width="10%" />
26     <col width="36%" />
27     <col width="15%" />
28     <col width="8%" />
29     <col width="8%" />
30     <col width="23%" />
31   </colgroup>
32   <thead>
33     <tr class="contain-align-left">
34       <th></th>
35       <th>uuid</th>
36       <th>contents</th>
37       <th>owner</th>
38       <th>age</th>
39       <th>storage</th>
40       <th>tags</th>
41     </tr>
42   </thead>
43   <tbody>
44     <%= render partial: 'index_tbody' %>
45   </tbody>
46 </table>
47
48 <% end %>
49
50 </div>
51
52 <%= render partial: "paging", locals: {results: @collections, object: @object} %>
53
54 <% content_for :footer_js do %>
55 $(document).on('click', 'form[data-remote] input[type=submit]', function() {
56   $('table#collections-index tbody').fadeTo(200, 0.3);
57   return true;
58 });
59 <% end %>