<% @objects.each do |o| %> <% status = (o.state == 'Complete') ? 'success' : ((o.state == 'Failed') ? 'failure' : 'pending') %> <% if %> <% end %> <% end %>
success active % complete uuid pipeline template name last updated
<%= status %> <%= (o.state == 'RunningOnServer') ? 'yes' : '-' %> <%= (o.progress_ratio * 1000).floor / 10 %> <%= o.uuid %> <%= o.pipeline_template_uuid %> <%= o.name %> <%= distance_of_time_in_words(o.updated_at, Time.now, true) + ' ago' if o.updated_at %>
<% o.progress_table.each do |r| %> <% r[2] = "#{(r[2]*100).floor}%" %> <% r[4] = r[4][0..5] rescue '' %> <% r.each do |c| %> <% end %> <% end %>
<%= (c.is_a? Time) ? distance_of_time_in_words(c, Time.now, true) + ' ago' : c %>