Sha256: b3a4000a0b8effdb4d2887c7c0878b848d5ab6a7152fa42ad9b3eaf26810e212

Contents?: true

Size: 1.94 KB

Versions: 8

Compression:

Stored size: 1.94 KB

Contents

<% view_title "#{@topic_id} partition #{@partition_id}" %>

<div class="col-span-4">
  <section class="actions">
    <% if @messages && !@messages.empty? %>
      <a
        href="<%= explorer_path(@topic_id, @partition_id, 'recent') %>"
        class="btn-action"
        title="Display the most recent message for this partition with auto-refresh"
      >
        <%== icon(:play_circle) %>
      </a>

      <a
        href="<%= explorer_path(@topic_id, 'search', "?partition=#{@partition_id}") %>"
        class="btn-action"
        title="Search in this topic"
      >
        <%== icon(:magnifying_glass) %>
      </a>

      <% closest_path = explorer_path(@topic_id, @partition_id) %>
      <input
        type="image"
        src="<%= asset_path('images/calendar.svg') %>"
        width="45"
        height="32"
        class="btn-action p-1 opacity-60"
        id="offset-lookup-datepicker"
        value=""
        data-target="<%= closest_path %>"
      />
    <% end %>
  </section>
</div>

<div class="col-span-8 mb-3">
  <section class="actions">
    <%== partial 'explorer/selector' %>
  </section>
</div>

<div class="col-span-12">
  <% if @limited %>
    <%== partial('explorer/topic/limited') %>
  <% end %>

  <% if @watermark_offsets.empty? && params.current_page == 1 %>
    <%== partial 'explorer/partition/empty' %>
  <% elsif @watermark_offsets.cleaned? && params.current_page == 1 %>
    <%== partial 'explorer/partition/cleaned' %>
  <% elsif @messages.empty? %>
    <%== partial 'shared/no_paginated_data' %>
  <% else %>
    <% content_for :table_metadata do %>
      <p class="table_metadata">
        Watermark offsets:
        <span class="badge badge-secondary mt-1 mb-1">
          high: <%= @watermark_offsets.high %>
        </span>

        <span class="badge badge-secondary mt-1 mb-1">
          low: <%= @watermark_offsets.low %>
        </span>
      </p>
    <% end %>

    <%== partial('explorer/partition/messages') %>
  <% end %>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
karafka-web-0.10.4 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.3 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.2 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.1 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.0 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.0.rc2 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.0.rc1 lib/karafka/web/pro/ui/views/explorer/partition.erb
karafka-web-0.10.0.beta1 lib/karafka/web/pro/ui/views/explorer/partition.erb