mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
7 lines
365 B
Text
7 lines
365 B
Text
<% if result.is_text %>
|
|
<%= render partial: 'results/result_text', locals: { result: result, target: nil } %>
|
|
<% elsif result.is_table %>
|
|
<%= render partial: 'results/result_table', locals: { result: result } %>
|
|
<% elsif result.is_asset %>
|
|
<%= render partial: 'assets/asset', locals: { asset: result.asset, gallery_view_id: result.my_module.id } %>
|
|
<% end %>
|