Sha256: 31da982ed0f6a883277f241d51e48c6668e04b8894842fb6be4e9e87df1fb9c4

Contents?: true

Size: 1.39 KB

Versions: 3

Compression:

Stored size: 1.39 KB

Contents

<%# locals: (error:) -%>
<tr class="even:bg-gray-50 align-top">
  <td scope="col" class="whitespace-wrap py-4 pl-4 pr-3 font-medium text-gray-900 sm:pl-3">
    <div>
      <%= error.severity_emoji %>
      <%= link_to error_path(error), class: "text-blue-400 underline inline-flex items-baseline gap-1" do %>
        <strong><code><%= error.exception_class %></code></strong>
      <% end %>
      from
      <em><code><%= error.source %></code></em>
    </div>
    <pre class="whitespace-pre-wrap ml-6 mt-4"><%= error.message %></pre>
  </td>
  <td scope="col" class="whitespace-nowrap px-3 py-4 pt-7 text-gray-500 text-right">
    <%= error.occurrences_count %>
  </td>
  <td scope="col" class="whitespace-nowrap px-3 py-4 pt-7 text-gray-500 text-right">
    <% last_seen_at = error.recent_occurrence.is_a?(String) ? DateTime.strptime(error.recent_occurrence, "%Y-%m-%d %H:%M:%S.%N") : error.recent_occurrence %>
    <abbr title="<%= last_seen_at.iso8601 %>" class="cursor-help">
      <%= time_tag last_seen_at, time_ago_in_words(last_seen_at, scope: 'datetime.distance_in_words.short') %>
    </abbr>
  </td>
  <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-3">
    <% if error.resolved? %>
      <%= render 'solid_errors/errors/delete_button', error: error %>
    <% else %>
      <%= render 'solid_errors/errors/resolve_button', error: error %>
    <% end %>
  </td>
</tr>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solid_errors-0.6.1 app/views/solid_errors/errors/_row.html.erb
solid_errors-0.6.0 app/views/solid_errors/errors/_row.html.erb
solid_errors-0.5.0 app/views/solid_errors/errors/_row.html.erb