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| %>
71 <% content_for :footer_js do %>
72 var showhide_compare = function() {
73 var form = $('form#compare')[0];
74 $('input[type=hidden][name="uuids[]"]', form).remove();
75 $('input[type=submit]', form).prop('disabled',true);
76 $('input[name="uuids[]"]').each(function(){
78 $('input[type=submit]', form).prop('disabled',false).show();
79 $(form).append($('<input type="hidden" name="uuids[]"/>').val(this.value));
83 $('form input[name="uuids[]"]').on('click', showhide_compare);