3204: Remove redundant pull-right from Workbench Collections search.
authorBrett Smith <brett@curoverse.com>
Tue, 8 Jul 2014 02:48:28 +0000 (22:48 -0400)
committerBrett Smith <brett@curoverse.com>
Tue, 8 Jul 2014 02:48:28 +0000 (22:48 -0400)
content_for :tab_line_buttons is already wrapped in a div.pull-right.
Doing that a second time forces the contents into an overly-small
box.

Closes #3204.

apps/workbench/app/views/collections/_show_recent.html.erb

index 21a815c40cc0b0cb7363263ae43c76fa36dcbed8..2f81073305ad4f7598d61a133ddf8802a0f621e1 100644 (file)
@@ -1,16 +1,14 @@
 <% 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>
+ <%= 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 partial: "paging", locals: {results: @collections, object: @object} %>