Fix up table columns, use explicit Open button instead of linking uuid
[arvados.git] / apps / workbench / app / views / folders / show.html.erb
index c7db5623526f79e05459e322590bfb75107c06cd..ec79e7b9a88f5e20837c831927fa2cb7af27b588 100644 (file)
       <div class="panel-body">
         <p>
         </p>
-        <table class="table">
+        <table class="table table-condensed arv-index">
           <tbody>
             <colgroup>
+              <col width="3%" />
+              <col width="8%" />
               <col width="30%" />
-              <col width="20%" />
-              <col width="20%" />
-              <col width="30%" />
+              <col width="15%" />
+              <col width="15%" />
+              <col width="29%" />
             </colgroup>
             <% @objects.each do |object| %>
             <tr>
+              <td>
+                <%= render :partial => "selection_checkbox", :locals => {object: object} %>
+              </td>
+              <td>
+                <%= render :partial => "show_object_button", :locals => {object: object} %>
+              </td>
               <td>
                 <% name_link = @objects.links_for(object, 'name').first || Link.new(link_class: "name", owner_uuid: @object.uuid, tail_uuid: @object.uuid, head_uuid: object.uuid, name: "") %>
                 <%= render_editable_attribute name_link, 'name', nil, { 'data-emptytext' => "Unnamed #{object.class}" } %>
                 </span>
               </td>
               <td class="arvados-uuid">
-                <%= link_to_if_arvados_object(object, {no_tags: true}) %>
+                <%= object.uuid %>
               </td>
             </tr>
             <% end %>
           <thead>
             <tr>
               <th>
-                Name
               </th>
               <th>
               </th>
               <th>
-                Modified
+                name
+              </th>
+              <th>
+                type
+              </th>
+              <th>
+                modified
               </th>
               <th>
-                UUID
+                uuid
               </th>
             </tr>
           </thead>