3342: Fix links to log files to use portable_data_hash. Remove spurious puts.
[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.inspect
8       case fallback
9       when :json
10         render(partial: "pipeline_instances/show_components_json")
11       end
12     end
13   end
14 end