Merge branch 'master' into 3714-report-issue-issues
[arvados.git] / apps / workbench / app / helpers / pipeline_components_helper.rb
1 module PipelineComponentsHelper
2   def render_pipeline_components(template_suffix, fallback=nil, locals={})
3     begin
4       render(partial: "pipeline_instances/show_components_#{template_suffix}",
5              locals: locals)
6     rescue Exception => e
7       logger.error "#{e.backtrace.join("\n\t")}"
8       case fallback
9       when :json
10         render(partial: "pipeline_instances/show_components_json")
11       end
12     end
13   end
14 end