Merge branch 'master' into 1977-provenance-report
[arvados.git] / apps / workbench / app / views / pipeline_instances / show.html.erb
1 <table class="table table-condensed table-hover topalign">
2   <thead>
3   </thead>
4   <tbody>
5     <% @object.attributes_for_display.each do |attr, attrvalue| %>
6     <% if attr == 'components' and attrvalue.is_a? Hash %>
7
8     <tr class="info"><td><%= attr %></td><td>
9         <table class="table">
10           <% pipeline_jobs.each do |pj| %>
11           <tr><% %w(index name result job_link script script_version progress_detail progress_bar output_link).each do |key| %>
12             <td>
13               <% if key == 'script_version' %>
14               <%= pj[key.to_sym][0..6] rescue '' %>
15               <% else %>
16               <%= pj[key.to_sym] %>
17               <% end %>
18             </td>
19             <% end %>
20           </tr>
21           <% end %>
22         </table>
23     </td></tr>
24
25     <% else %>
26     <%= render partial: 'application/arvados_object_attr', locals: { attr: attr, attrvalue: attrvalue } %>
27     <% end %>
28     <% end %>
29   </tbody>
30 </table>
31
32 <%= raw(@prov_svg) %>
33
34 <pre>
35 <%= JSON.pretty_generate(@object.attributes) rescue nil %>
36 </pre>