<% if asset.blank? and @asset.present? then asset = @asset end %> <% is_image = asset.is_image? %> <% timestamp = asset.created_at %> <% icon_class = 'fas ' + (is_image ? 'fa-image' : 'fa-file') %>
" data-icon-class="<%= icon_class %>">
<%=t 'projects.reports.elements.step_asset.file_name', file: truncate( asset.file_file_name, length: Constants::FILENAME_TRUNCATION_LENGTH) %>
<%=t 'projects.reports.elements.step_asset.user_time', timestamp: l(timestamp, format: :full) %>
<%= render partial: 'reports/elements/element_controls.html.erb' %>
<% if is_image %>
<%= report_image_asset_url(asset) %>
<% end %>
<%= children if (defined? children and children.present?) %>