<% seen_at = occurrence.created_at %> <% backtrace = occurrence.parsed_backtrace %> <% open ||= defined?(occurrence_counter) ? occurrence_counter.zero? : true %> <%= tag.section id: dom_id(occurrence), class: "" do %> <%= tag.details open: open do %> <%= time_tag seen_at, seen_at %> (<%= time_ago_in_words(seen_at) %> ago)
<% occurrence.context&.each do |key, value| %>
<%= SolidErrors::Occurrence.human_attribute_name(key) %>
<%= value %>
<% end %>
<%= SolidErrors::Occurrence.human_attribute_name(:backtrace) %>
<% backtrace.lines.each_with_index do |line, i| %> <%= tag.details open: line.application? || i.zero? do %> <% if line.filtered_file %> <%= File.dirname(line.filtered_file) %>/<%= File.basename(line.filtered_file) %>:<%= line.filtered_number %> in <%= line.filtered_method %> <% else %> <%= line.unparsed_line %> <% end %>
<% line.source.each do |n, code| %>
                    
<%= n %><%= code %>
<% end %>
<% end %> <% end %>
<% end %> <% end %>