X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5b64c43183ede1313ccd7b44425d83a0b496a021..ab874e9d6cd3313ce827dc4d4d574913575ad095:/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb?ds=sidebyside 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 bfb3dc840e..f918e24e9d 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb @@ -1,21 +1,16 @@ -<%= 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'} %> - -<% end rescue nil %> -<% end %> +<%= render partial: "paging", locals: {results: @objects, object: @object} %> <%= form_tag do |f| %>
Instance - | + | Template | Owner | - Age + Created at + | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
- <%= check_box_tag 'uuids[]', ob.uuid, false %> + <%= 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 %> | <%= link_to_if_arvados_object ob.owner_uuid, friendly_name: true %> | - <%= distance_of_time_in_words(ob.created_at, Time.now) %> + <%= ob.created_at.to_s %> + | + <%= render partial: 'delete_object_button', locals: {object:ob} %> | ||||
+ | |||||||||||
- | + | <% ob.components.each do |cname, c| %> - <% status = if !(c.is_a?(Hash) && c[:job].is_a?(Hash)) - nil - elsif c[:job][:success] - 'success' - elsif c[:job][:running] - 'info' - else - 'warning' - end %> - <%= 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 %> + <%= cname.to_s %> + <% end %> <% end %> |