<% if result.blank? and @result.present? then result = @result end %> <% asset = result.asset %> <% is_image = result.asset.is_image? %> <% comments = result.comments %> <% timestamp = asset.created_at %> <% name = result.name %> <% icon_class = is_image ? "glyphicon-picture" : "glyphicon-file" %>
" data-name="<%= name %>" data-icon-class="<%= icon_class %>">
<%= name %>
<%=t "projects.reports.elements.result_asset.file_name", file: truncate( asset.file_file_name, length: 50 ) %>
<%=t "projects.reports.elements.result_asset.user_time", user: result.user.full_name, 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?) %>