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