X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f26cbf1c4d949d3e7c7b26ab27c5f4d48d8059ed..c912d9d8d9e2a055a53967c5b01242c321dfbeb6:/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb index ed5b2d086a..09eae0f351 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb @@ -10,12 +10,11 @@ - + + - - - + @@ -24,7 +23,7 @@ Status
Instance - + Template Owner @@ -41,12 +40,8 @@ <%= check_box_tag 'uuids[]', ob.uuid, false, :class => 'persistent-selection' %> - <% if ob.success %> - success - <% elsif ob.active %> - active - <% end %> - + <%= render partial: 'pipeline_status_label', locals: {:p => ob} %> + <%= link_to_if_arvados_object ob, friendly_name: true %> <%= link_to_if_arvados_object ob.pipeline_template_uuid, friendly_name: true %> @@ -61,18 +56,11 @@ <% ob.components.each do |cname, c| %> - <% status = if !(c.is_a?(Hash) && c[:job].is_a?(Hash)) - nil - elsif c[:job][:success] == true - 'success' - elsif c[:job][:success] == false - 'danger' - elsif c[:job][:running] == true - 'info' - else - 'warning' - end %> - <%= cname.to_s %> + <% if c[:job] %> + <%= render partial: "job_status_label", locals: {:j => c[:job], :title => cname.to_s } %> + <% else %> + <%= cname.to_s %> + <% end %> <% end %>