scinote-web/app/views/my_modules/_result_user_generated.html.erb
2020-11-04 13:08:40 +01:00

7 lines
388 B
Text

<% if result.is_text %>
<%= render partial: "results/result_text.html.erb", locals: {result: result, target: nil} %>
<% elsif result.is_table %>
<%= render partial: "results/result_table.html.erb", locals: {result: result} %>
<% elsif result.is_asset %>
<%= render partial: 'assets/asset.html.erb', locals: { asset: result.asset, gallery_view_id: result.my_module.id } %>
<% end %>