Sha256: 440fe22f6df2e85b910aa66ef3420b9b9d1c5b8cf243fdc6eaa634686b8c86e8

Contents?: true

Size: 1.24 KB

Versions: 20

Compression:

Stored size: 1.24 KB

Contents

<% if v.is_a?(Hash) %>
  <% v.each do |k2, v2| %>
    <tr>
      <td>
        <%= "#{k}.#{k2}" %>
      </td>
      <td>
        <% if %w[sasl ssl].any? { |scope| k2.to_s.include?(scope) } %>
          ***
        <% elsif k2.to_s == 'tags' %>
          <%== tags(v2) %>
        <% elsif k2.to_s == 'first_offset' %>
          <a href="<%= explorer_path(v[:topic], v[:partition], v[:first_offset]) %>">
            <%= v2 %>
          </a>
        <% elsif k2.to_s == 'last_offset' %>
          <a href="<%= explorer_path(v[:topic], v[:partition], v[:last_offset]) %>">
            <%= v2 %>
          </a>
        <% elsif k2.to_s == 'committed_offset' && v2 >=0 %>
          <a href="<%= explorer_path(v[:topic], v[:partition], v[:committed_offset]) %>">
            <%= v2 %>
          </a>
        <% else %>
          <%= v2 %>
        <% end %>
      </td>
    </tr>
  <% end %>
<% else %>
  <tr>
    <td>
      <%= k %>
    </td>
    <td>
      <% case k
         when :occurred_at
      %>
        <%== relative_time v %>
      <% when :error_class %>
        <code><%= v %></code>
      <% when :type %>
        <span class="badge bg-secondary">
          <%= v %>
        </span>
      <% else %>
        <%= v %>
      <% end %>
    </td>
  </tr>
<% end %>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
karafka-web-0.9.1 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.9.0 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.9.0.rc3 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.9.0.rc2 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.9.0.rc1 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.8.2 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.8.1 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.8.0 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.8.0.rc1 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.10 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.9 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.8 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.7 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.6 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.5 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.4 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.3 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.2 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.1 lib/karafka/web/ui/views/errors/_detail.erb
karafka-web-0.7.0 lib/karafka/web/ui/views/errors/_detail.erb