Sha256: 48f11c2312f83dea498ba422139374cb605dfab706d0c0ef05d915492808cd9f

Contents?: true

Size: 954 Bytes

Versions: 3

Compression:

Stored size: 954 Bytes

Contents

<% if error_msg.is_a?(Integer) %>
  <tr>
    <td colspan="5" class="text-center text-muted">
      This error has either been removed or compacted and is no longer available.
    </td>
  </tr>
<% else %>
  <% error = error_msg.payload %>

  <tr>
    <td>
      <span class="badge bg-secondary badge-topic">
        <% if error[:details].key?(:topic) %>
          <%= error[:details][:topic] %>: <%= error[:details][:partition] %>
        <% else %>
          <%= error[:type] %>
        <% end %>
      </span>
    </td>
    <td>
      <%== error[:process][:name] %>
    </td>
    <td>
      <%= error[:error_class] %>:
      <%= error[:error_message].first(200) %>
    </td>
    <td>
      <%== relative_time error[:occurred_at] %>
    </td>
    <td class="text-center">
      <a href="<%= root_path('errors', error_msg.partition, error_msg.offset) %>" class="btn btn-sm btn-secondary text-white">
        Details
      </a>
    </td>
  </tr>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
karafka-web-0.6.3 lib/karafka/web/ui/pro/views/errors/_error.erb
karafka-web-0.6.1 lib/karafka/web/ui/pro/views/errors/_error.erb
karafka-web-0.6.0 lib/karafka/web/ui/pro/views/errors/_error.erb