<% 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: "shared/asset_link", locals: { asset: result.asset, display_image_tag: true }, formats: :html %>
<% end %>
