% seen_at = occurrence.created_at %>
<% backtrace = occurrence.parsed_backtrace %>
<%= tag.section id: dom_id(occurrence), class: "" do %>
<%= tag.details open: occurrence_counter.zero? 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 %>
<%= File.dirname(line.filtered_file) %>/<%= File.basename(line.filtered_file) %>:<%= line.filtered_number %>
in
<%= line.filtered_method %>
<% line.source.each do |n, code| %>
<%= n %><%= code %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>