Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / jobs / _show_recent.html.erb
index b19b7d93ed13ac83c9ed6d66871846c727fb4aa8..1dd0c828f2fe66036d0fba5084ca149c8fc32345 100644 (file)
@@ -1,3 +1,7 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% content_for :css do %>
   table.topalign>tbody>tr>td {
   vertical-align: top;
@@ -15,8 +19,6 @@
       <th>
       </th><th>
        status
-      </th><th>
-       progress
       </th><th>
        uuid
       </th><th>
@@ -36,9 +38,6 @@
       <td>
         <i class="icon-plus-sign expand-collapse-row" data-id="<%= j.uuid %>" style="cursor: pointer"></i>
       </td>
-      <td>
-        <%= render partial: 'job_status_label', locals: {:j => j} %>
-      </td>
       <td>
         <div class="inline-progress-container">
           <%= render partial: 'job_progress', locals: {:j => j} %>
@@ -83,7 +82,7 @@
             <td>
               <% if j.finished_at.is_a? Time %>
              <%= raw('ran&nbsp;' + distance_of_time_in_words(j.finished_at, j.started_at).sub('about ','~').sub(' ','&nbsp;')) %>
-              <% elsif j.running %>
+              <% elsif j.state == "Running" %>
               <span class="badge badge-success" title="tasks finished">&#x2714;&nbsp;<%= j.tasks_summary[:done] %></span>
               <span class="badge badge-info" title="tasks running">&#x2708;&nbsp;<%= j.tasks_summary[:running] %></span>
               <span class="badge" title="tasks todo">&#x2709;&nbsp;<%= j.tasks_summary[:todo] %></span>
 
   </tbody>
 </table>
-