Sha256: 1a1631c72bddfcd31fb91e572bfddc7c9a540e5b98b273f60394405117eb2ced

Contents?: true

Size: 1.92 KB

Versions: 2

Compression:

Stored size: 1.92 KB

Contents

<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.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">
    <%= button_to error_path(error), method: :patch, class: "inline-flex items-center justify-center gap-2 font-medium cursor-pointer border rounded-lg py-3 px-5 bg-transparent text-blue-500 border-blue-500 hover:ring-blue-200 hover:ring-8", params: { error: { resolved_at: Time.now } } do %>
      <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check2-circle" viewBox="0 0 16 16">
        <path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0 5.5 5.5 0 1 1-11 0"/>
        <path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0z"/>
      </svg>
      <span>Resolve<span class="sr-only">, Error #<%= error.id %></span></span>
    <% end %>
  </td>
</tr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solid_errors-0.4.3 app/views/solid_errors/errors/_row.html.erb
solid_errors-0.4.2 app/views/solid_errors/errors/_row.html.erb