<% @object.attributes_for_display.each do |attr, attrvalue| %>
<% if attr == 'components' and attrvalue.is_a? Hash %>
<%= attr %> |
<% pipeline_jobs.each do |pj| %>
<% %w(index name result job_link script script_version progress_detail progress_bar output_link).each do |key| %>
<% if key == 'script_version' %>
<%= pj[key.to_sym][0..6] rescue '' %>
<% else %>
<%= pj[key.to_sym] %>
<% end %>
|
<% end %>
<% end %>
|
<% else %>
<%= render partial: 'application/arvados_object_attr', locals: { attr: attr, attrvalue: attrvalue } %>
<% end %>
<% end %>
<%= JSON.pretty_generate(@object.attributes) rescue nil %>