From c622df06198f5060e0dffa8a4131738faf324ffa Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 25 Feb 2013 12:26:38 -0800 Subject: [PATCH 1/1] add pipelines#show --- app/views/pipelines/show.html.erb | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 app/views/pipelines/show.html.erb 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 %>
+
-- 2.30.2