Sha256: 79a1bcf3107c6865d9af59a92d05edbff084074d94ecbbf3d5f0ed46672d0a05

Contents?: true

Size: 1015 Bytes

Versions: 3

Compression:

Stored size: 1015 Bytes

Contents

<%= render partial: 'kafka_command/shared/title', locals: { title: @cluster.to_human, subtitle: 'Brokers' } %>

<div class="level"a>
  <div class="level-left">
    <div class="level-item" style="margin-left: 0.2rem">
      <p class="subtitle is-5">
        <strong><%= @brokers.count %></strong> brokers
      </p>
    </div>
  </div>
</div>

<table class="table is-striped is-fullwidth is-bordered">
  <thead>
    <th>Id</th>
    <th>Host</th>
    <th>Connection Status</th>
  </thead>
  <tbody>
    <% @brokers.each do |broker| %>
      <tr>
        <td><%= broker.kafka_broker_id %></td>
        <td><%= broker.host %></td>
        <td>
          <% if broker.connected? %>
            <span class="icon has-text-success">
              <i class="fas fa-check-circle"></i>
            </span>
          <% else %>
            <span class="icon has-text-danger">
              <i class="fas fa-times-circle"></i>
            </span>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kafka_command-0.0.3 app/views/kafka_command/brokers/index.html.erb
kafka_command-0.0.2 app/views/kafka_command/brokers/index.html.erb
kafka_command-0.0.1 app/views/kafka_command/brokers/index.html.erb