Sha256: bdd73a647ba36122351083dc82f2281b13307fbe44b33d27b3d7fcf49dfd2416

Contents?: true

Size: 933 Bytes

Versions: 3

Compression:

Stored size: 933 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.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/views/errors/_error.erb
karafka-web-0.6.1 lib/karafka/web/ui/views/errors/_error.erb
karafka-web-0.6.0 lib/karafka/web/ui/views/errors/_error.erb