From: Tom Clegg Date: Mon, 25 Feb 2013 20:26:38 +0000 (-0800) Subject: add pipelines#show X-Git-Tag: 1.1.0~3374^2~30 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c622df06198f5060e0dffa8a4131738faf324ffa?hp=83e22fd49774c6e60ea4e743e93c7eaf63489b1a add pipelines#show --- diff --git a/app/views/pipelines/show.html.erb b/app/views/pipelines/show.html.erb new file mode 100644 index 0000000000..24ac978414 --- /dev/null +++ b/app/views/pipelines/show.html.erb @@ -0,0 +1,42 @@ + + + + + <% @object.attributes_for_display.each do |attr, attrvalue| %> + <% if attr == 'components' and attrvalue.is_a? Hash and attrvalue[:steps].is_a? Array %> + + + + <% else %> + <%= render partial: 'application/orvos_object_attr', locals: { attr: attr, attrvalue: attrvalue } %> + <% end %> + <% end %> + +
components[steps] + + <% attrvalue[:steps].each_with_index do |s, i| %> + + + <% %w(name function min_revision max_steps_per_node params).each do |key| %> + + <% end %> + + <% end %> +
<%= i %> + <% if key == 'params' %> + <% s[key.to_sym].each do |p| %> + <%= p[:name] %> + <% if p[:data_locator] || p[:value] %> + ← <%= p[:data_locator] || p[:value] %> + <% end %> + <%= '(optional)' if p[:optional] %> +
+ <% end %> + <% else %> + <%= s[key.to_sym] %> + <% end %> +
+
+
+<%= JSON.pretty_generate(@object.components) rescue nil %>
+