3381: Merge job_status_label and job_progress into a single job_progress
[arvados.git] / apps / workbench / app / views / pipeline_instances / _show_recent.html.erb
index 86eab623f6595508043ee31634580435056caceb..f918e24e9dbab740b8a6300cfdcbe3a94ad0c2fc 100644 (file)
@@ -1,10 +1,3 @@
-<%= content_for :tab_line_buttons do %>
-<%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %>
-  <%= submit_tag 'Compare 2 or 3 selected', {class: 'btn btn-primary', disabled: true, style: 'display: none'} %>
-  &nbsp;
-<% end rescue nil %>
-<% end %>
-
 <%= render partial: "paging", locals: {results: @objects, object: @object} %>
 
 <%= form_tag do |f| %>
@@ -31,7 +24,7 @@
       </th><th>
        Owner
       </th><th>
-       Age
+       Created at
       </th><th>
       </th>
     </tr>
       </td><td>
         <%= link_to_if_arvados_object ob.owner_uuid, friendly_name: true %>
       </td><td>
-        <%= distance_of_time_in_words(ob.created_at, Time.now) %>
+        <%= ob.created_at.to_s %>
       </td><td>
         <%= render partial: 'delete_object_button', locals: {object:ob} %>
       </td>
     </tr>
-    <tr>
+    <tr data-object-uuid="<%= ob.uuid %>">
       <td style="border-top: 0;" colspan="2">
       </td>
       <td style="border-top: 0; opacity: 0.5;" colspan="6">
         <% ob.components.each do |cname, c| %>
-          <% if c[:job] %>
-            <%= render partial: "job_status_label", locals: {:j => c[:job], :title => cname.to_s } %>
+          <% if c.is_a?(Hash) and c[:job] %>
+            <%= render partial: "job_progress", locals: {:j => c[:job], :title => cname.to_s, :show_progress_bar => false } %>
           <% else %>
-            <span class="label label-default"><%= cname.to_s %></span>            
+            <span class="label label-default"><%= cname.to_s %></span>
           <% end %>
         <% end %>
       </td>