-<%= render :partial => 'nav' %>
-
-<table class="topalign table table-bordered table-striped">
- <thead>
- <tr class="contain-align-left">
- <th>
- uuid
- </th><th>
- created
- </th><th>
- protected
- </th><th>
- groups
- </th><th>
- origin
- </th>
- </tr>
- </thead>
- <tbody>
-
- <% @collection_info.sort_by { |k,c| c[:created_at].is_a?(Time) ? c[:created_at] : Time.now }.reverse.each do |uuid, c| %>
-
- <tr class="collection">
- <td>
- <% if @collections.has_key? uuid %>
- <%= link_to_if_arvados_object uuid %>
- <% else %>
- <%= uuid %>
- <% end %>
- </td><td>
- <%= raw(distance_of_time_in_words(c[:created_at], Time.now).sub('about ','~').sub(' ',' ')) if c[:created_at] %>
- </td><td>
- <%= ('Y' if c[:wanted_by_me]) or ('y' if c[:wanted]) %>
- </td><td>
- <%= c[:groups].size if c[:groups] %>
- </td><td>
- <% if c[:origin] %>
- <span class="deemphasize"><%= c[:origin].name %></span>
- <%= c[:origin].head_uuid %>
- <% end %>
- </td>
- </tr>
-
- <% end %>
-
- </tbody>
-</table>
+<% content_for :tab_line_buttons do %>
+ <%= 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 %>
+<% end %>
+
+<%= render file: 'application/index.html.erb', locals: local_assigns %>