Merge branch '1499-workbench-tags'
[arvados.git] / apps / workbench / app / views / users / _tables.html.erb
index 6e740df5a408a9e21328af543c173d7c3686b12d..bcbf3d7c6df0a52ddbd1d488622f05a466e662d4 100644 (file)
 <div>
   <strong>Recent collections</strong>
   <%= link_to raw("Show all collections &rarr;"), collections_path, class: 'pull-right' %>
+  <div class="pull-right" style="padding-right: 1em">
+    <%= form_tag collections_path,
+          method: 'get',
+          class: 'form-search small-form-margin' do %>
+    <div class="input-append">
+      <%= text_field_tag :search, params[:search], class: 'search-query search-mini' %>
+      <%= submit_tag "Search", name: nil, class: 'btn btn-mini btn-info' %>
+    </div>  
+    <% end %>
+  </div>
   <% if not current_user.andand.is_active or @my_collections.empty? %>
     <br/>(None)
   <% else %>
     <table class="table table-bordered table-condensed table-fixedlayout">
       <colgroup>
-        <col width="73%" />
+        <col width="46%" />
+        <col width="27%" />
         <col width="27%" />
       </colgroup>
 
       <tr>
        <th>Contents</th>
+       <th>Tags</th>
        <th>Age</th>
       </tr>
 
              </a>
             </small>
           </td>
+          <td>
+            <% if @my_tag_links[c.uuid] %>
+            <small>
+              <%= @my_tag_links[c.uuid].collect(&:name).join(", ") %>
+            </small>
+            <% end %>
+          </td>
           <td>
             <small>
              <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about