% if can_view_or_download_result_assets(result.my_module) %> <%= link_to download_asset_path(result.asset), data: {no_turbolink: true} do %> <%= image_tag(preview_asset_path result.asset) if result.asset.is_image? %>
<%= truncate(result.asset.file_file_name, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
<% end %> <% else %> <%= image_tag(preview_asset_path result.asset) if result.asset.is_image? %><%= result.asset.file_file_name %>
<% end %>