12863: Adds column showing process status on project pages.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 12 Feb 2018 22:41:13 +0000 (19:41 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 12 Feb 2018 22:41:13 +0000 (19:41 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

apps/workbench/app/views/projects/_show_contents_rows.html.erb
apps/workbench/app/views/projects/_show_tab_contents.html.erb

index d440c4670c831c9c17d29738cb68195d28719891..f22af3b76b65a4a71e0be44bea6d46ac47cbf9ee 100644 (file)
@@ -29,6 +29,15 @@ SPDX-License-Identifier: AGPL-3.0 %>
       <%= render :partial => "show_object_button", :locals => {object: object, size: 'sm', name_link: name_link} %>
     </td>
 
+    <td>
+    <% if object.respond_to?(:work_unit) %>
+      <% wu = object.work_unit object.name %>
+      <span class="label label-<%=wu.state_bootstrap_class%>">
+        <%=wu.state_label%>
+      </span>
+    <% end %>
+    </td>
+
     <td>
       <% if object.respond_to?(:name) %>
         <%= render_editable_attribute (name_link || object), 'name', nil, {}, {tiptitle: 'rename'} %>
index 2e5c8a3b7fddb3042e23f63209c79b16109cd2d4..4b37cda2df8a9a94a5ceb38e0b9c982f780a0601 100644 (file)
@@ -90,6 +90,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
       <col width="0*" style="max-width: fit-content;" />
       <col width="0*" style="max-width: fit-content;" />
       <col width="0*" style="max-width: fit-content;" />
+      <col width="0*" style="max-width: fit-content;" />
       <col width="60%" style="width: 60%;" />
       <col width="40%" style="width: 40%;" />
     </colgroup>
@@ -100,6 +101,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
         <th></th>
         <th></th>
         <th></th>
+        <th></th>
         <% sort_order = sortable_columns['name'].gsub(/\s/,'') if sortable_columns['name'] %>
         <th <% if !sort_order.nil? %>
               data-sort-order='<%= sort_order %>'