Hide preview pane on narrow screens. closes #3496
[arvados.git] / apps / workbench / app / views / application / _show_recent.html.erb
index c36f27ccc74ea35c55eadc877bb784d52f085003..d94dd84be4d3a13b7da3b6facfb4264b39b7284a 100644 (file)
@@ -15,7 +15,9 @@
 <table class="table table-condensed arv-index">
   <thead>
     <tr>
-      <th></th>
+      <% if objects.first and objects.first.class.goes_in_projects? %>
+        <th></th>
+      <% end %>
       <th></th>
       <% objects.first.attributes_for_display.each do |attr, attrvalue| %>
       <% next if attr_blacklist.index(" "+attr) %>
   <tbody>
     <% objects.each do |object| %>
     <tr data-object-uuid="<%= object.uuid %>">
-      <td>
-        <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
-      </td>
+      <% if objects.first.class.goes_in_projects? %>
+        <td>
+          <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
+        </td>
+      <% end %>
       <td>
         <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %>
       </td>