3 <table class="table table-hover">
5 <tr class="contain-align-left">
29 <% @objects.sort_by { |ob| ob.created_at }.reverse.each do |ob| %>
31 <tr data-object-uuid="<%= ob.uuid %>">
33 <%= check_box_tag 'uuids[]', ob.uuid, false %>
36 <span class="label label-success">success</span>
38 <span class="label label-info">active</span>
41 <%= link_to_if_arvados_object ob %>
45 <%= link_to_if_arvados_object ob.pipeline_template_uuid %>
47 <%= link_to_if_arvados_object ob.owner_uuid %>
49 <% ob.components.each do |cname, c| %>
50 <% status = if !(c.is_a?(Hash) && c[:job].is_a?(Hash)) then nil elsif c[:job][:success] then 'success' elsif c[:job][:running] then 'info' else 'warning' end %>
51 <span class="label <%= "label-#{status}" if status %>"><%= cname.to_s %></span>
55 <% ob.dependencies.each do |d| %>
63 <%= link_to({action: 'destroy', id: ob.uuid}, method: :delete, remote: true, data: {confirm: "You are about to delete #{controller.model_class} #{ob.uuid}.\n\nAre you sure?"}) do %>
64 <i class="icon-trash"></i>
77 <% content_for :footer_js do %>
78 var showhide_compare = function() {
79 var form = $('form#compare')[0];
80 $('input[type=hidden][name="uuids[]"]', form).remove();
81 $('input[type=submit]', form).prop('disabled',true);
82 $('input[name="uuids[]"]').each(function(){
84 $('input[type=submit]', form).prop('disabled',false).show();
85 $(form).append($('<input type="hidden" name="uuids[]"/>').val(this.value));
89 $('form input[name="uuids[]"]').on('click', showhide_compare);