-<%#= render :partial => 'nav' %>
-
-<div class="pull-right">
- <%= form_tag collections_path, method: 'get', remote: true do %>
- <div class="input-append">
- <%= text_field_tag :search, params[:search] %>
- <%= submit_tag "Search", name: nil, class: 'btn btn-info' %>
- </div>
- <% end %>
-</div>
-
-<table id="collections-index" class="topalign table table-bordered table-condensed table-fixedlayout table-smallcontent">
- <colgroup>
- <col width="10%" />
- <col width="50%" />
- <col width="16%" />
- <col width="16%" />
- <col width="8%" />
- </colgroup>
- <thead>
- <tr class="contain-align-left">
- <th>
- uuid
- </th><th>
- contents
- </th><th>
- age
- </th><th>
- tags
- </th><th>
- storage
- </th>
- </tr>
- </thead>
- <tbody>
- <%= render partial: 'index_tbody' %>
- </tbody>
-</table>
-
-<% content_for :js do %>
-$(document).on('click', 'form[data-remote] input[type=submit]', function() {
- $('table#collections-index tbody').fadeTo(200, 0.3);
- return true;
-});
+<% 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 %>