Sha256: c348ddb63c55db5893a5c3688f05e80cbeb94f06fae7d6f8239494d5e341e33e

Contents?: true

Size: 1.27 KB

Versions: 6

Compression:

Stored size: 1.27 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="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.size %>
  </td>
  <td scope="col" class="whitespace-nowrap px-3 py-4 pt-7 text-gray-500 text-right">
    <%= time_ago_in_words error.occurrences.maximum(:created_at), scope: 'datetime.distance_in_words.short' %>
  </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 %>
      Resolve<span class="sr-only">, Error #<%= error.id %></span>
    <% end %>
  </td>
</tr>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solid_errors-0.2.13 app/views/solid_errors/errors/_error.html.erb
solid_errors-0.2.12 app/views/solid_errors/errors/_error.html.erb
solid_errors-0.2.11 app/views/solid_errors/errors/_error.html.erb
solid_errors-0.2.10 app/views/solid_errors/errors/_error.html.erb
solid_errors-0.2.9 app/views/solid_errors/errors/_error.html.erb
solid_errors-0.2.8 app/views/solid_errors/errors/_error.html.erb