1 <table style="width:100%">
2 <tr class="contain-align-left">
20 <% @objects.each do |o| %>
22 <% status = (o.state == 'Complete') ? 'success' : ((o.state == 'Failed') ? 'failure' : 'pending') %>
24 <tr class="pipeline-instance-status pipeline-instance-status-<%= status %>" data-showhide-selector="tr#extra-info-<%= o.uuid %>" style="cursor:pointer">
28 <%= (o.state == 'RunningOnServer') ? 'yes' : '-' %>
30 <%= (o.progress_ratio * 1000).floor / 10 %>
34 <%= o.pipeline_template_uuid %>
38 <%= distance_of_time_in_words(o.updated_at, Time.now, true) + ' ago' if o.updated_at %>
43 <tr id="extra-info-<%= o.uuid %>" data-showhide-default>
46 <% o.progress_table.each do |r| %>
48 <% r[2] = "#{(r[2]*100).floor}%" %>
49 <% r[4] = r[4][0..5] rescue '' %>
52 <%= (c.is_a? Time) ? distance_of_time_in_words(c, Time.now, true) + ' ago' : c %>