X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/89355aa0e2727373fa60c781ec6c00c31a79a7dc..685f9cb6a771db0d25f000e5bf8616ba1832a218:/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 5d31701272..fc67e1791a 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb @@ -5,17 +5,19 @@ <% end rescue nil %> <% end %> +<%= render partial: "paging", locals: {results: @objects, object: @object} %> + <%= form_tag do |f| %> - + + - - - + + @@ -24,12 +26,13 @@ Status @@ -41,36 +44,29 @@ - - @@ -81,21 +77,4 @@ <% end %> -<% content_for :footer_js do %> -var showhide_compare = function() { - var form = $('form#compare')[0]; - $('input[type=hidden][name="uuids[]"]', form).remove(); - $('input[type=submit]', form).prop('disabled',true).show(); - var checked_inputs = $('input[name="uuids[]"]:checked'); - if (checked_inputs.length >= 2 && checked_inputs.length <= 3) { - checked_inputs.each(function(){ - if(this.checked) { - $('input[type=submit]', form).prop('disabled',false).show(); - $(form).append($('').val(this.value)); - } - }); - } -}; -$('form input[name="uuids[]"]').on('click', showhide_compare); -showhide_compare(); -<% end %> +<%= render partial: "paging", locals: {results: @objects, object: @object} %>
Instance - + Template Owner - Age + Created at +
<%= 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[:job] %> + <%= render partial: "job_status_label", locals: {:j => c[:job], :title => cname.to_s } %> + <% else %> + <%= cname.to_s %> + <% end %> <% end %>