class PipelineInstancesController < ApplicationController
+ skip_before_filter :find_object_by_uuid, only: :compare
+ before_filter :find_objects_by_uuid, only: :compare
+
+ def compare
+ end
+
+ protected
+ def find_objects_by_uuid
+ @objects = model_class.where(uuid: params[:uuid])
+ end
end
--- /dev/null
+<table class="table table-condensed table-hover topalign">
+ <thead>
+ </thead>
+ <tbody>
+ <tr>
+ <% @objects.each do |object| %>
+ <td>
+
+ <table class="table table-condensed table-hover topalign">
+ <thead>
+ </thead>
+ <tbody>
+ <% object.attributes_for_display.each do |attr, attrvalue| %>
+ <% if attr == 'components' and attrvalue.is_a? Hash %>
+
+ <tr class="info"><td><%= attr %></td><td>
+ <table class="table">
+ <% pipeline_jobs.each do |pj| %>
+ <tr><% %w(index name result job_link script script_version progress_detail progress_bar output_link).each do |key| %>
+ <td>
+ <% if key == 'script_version' %>
+ <%= pj[key.to_sym][0..6] rescue '' %>
+ <% else %>
+ <%= pj[key.to_sym] %>
+ <% end %>
+ </td>
+ <% end %>
+ </tr>
+ <% end %>
+ </table>
+ </td></tr>
+
+ <% else %>
+ <%= render partial: 'application/arvados_object_attr', locals: { attr: attr, attrvalue: attrvalue } %>
+ <% end %>
+ <% end %>
+ </tbody>
+ </table>
+
+ </td>
+ <% end %>
+ </tr>
+ </tbody>
+</table>
resources :groups
resources :specimens
resources :pipeline_templates
- resources :pipeline_instances
+ resources :pipeline_instances do
+ get 'compare/*uuid' => 'pipeline_instances#compare'
+ end
resources :links
match '/collections/graph' => 'collections#graph'
resources :collections