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