<% asset ||= report_element.asset %> <% timestamp = asset.created_at %>
<%= file_extension_icon_html(asset, true) %> <% if defined? export_all and export_all %> <% file_link = @obj_filenames.dig(:assets, asset.id, :file) %> <%= file_link&.split('/')&.last %> <% else %> <%= truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH) %> <%= link_to t('projects.reports.elements.download'), asset_download_url(asset, disposition: 'attachment'), class: 'download-link', target: :_blank %> <% end %>
 <%= t('projects.reports.elements.step_asset.user_time', timestamp: l(timestamp, format: :full)) %>
<% if asset.previewable? && !asset.list? %>
<% if defined?(export_all) && export_all %> <% else %> <%= report_image_asset_url(asset) %> <% end %>
<% end %>
<% if defined?(children) %>
<%= children %>
<% end %>