3342: Fixing outputs
[arvados.git] / apps / workbench / app / views / collections / _show_recent.html.erb
index a3b93d84e67aa9739b95592543bade636f4e0aaf..54fc9f3da5c5b3f182ced62f16db8313240cb8d0 100644 (file)
@@ -1,40 +1,23 @@
-<% content_for :tab_line_buttons do %>
-<div class="pull-right" style="width: 30%">
-  <%= form_tag collections_path, method: 'get', remote: true, class: 'form-search' do %>
-  <div class="input-group">
-    <%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search collections' %>
-    <span class="input-group-btn">
-      <%= button_tag(class: 'btn btn-info') do %>
-      <span class="glyphicon glyphicon-search"></span>
-      <% end %>
-    </span>
-  </div>  
-  <% end %>
-</div>
-<% end %>
+<%= render partial: "paging", locals: {results: @collections, object: @object} %>
 
 <div style="padding-right: 1em">
 
 <%= form_tag do |f| %>
 
-<table id="collections-index" class="topalign table table-condensed table-fixedlayout table-fixed-header-row">
+<table id="collections-index" class="topalign table table-condensed table-fixedlayout"> <!-- table-fixed-header-row -->
   <colgroup>
-    <col width="4%" />
     <col width="10%" />
-    <col width="36%" />
-    <col width="15%" />
-    <col width="8%" />
-    <col width="8%" />
-    <col width="23%" />
+    <col width="10%" />
+    <col width="40%" />
+    <col width="10%" />
+    <col width="30%" />
   </colgroup>
   <thead>
     <tr class="contain-align-left">
       <th></th>
       <th>uuid</th>
       <th>contents</th>
-      <th>owner</th>
-      <th>age</th>
-      <th>storage</th>
+      <th>created at</th>
       <th>tags</th>
     </tr>
   </thead>
@@ -47,6 +30,8 @@
 
 </div>
 
+<%= render partial: "paging", locals: {results: @collections, object: @object} %>
+
 <% content_for :footer_js do %>
 $(document).on('click', 'form[data-remote] input[type=submit]', function() {
   $('table#collections-index tbody').fadeTo(200, 0.3);