Sha256: 07054a676626d9f2cdb2dc5495ef30be9e9226b99335717aa43dce997446d256
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
<%= render partial: 'kafka_command/shared/title', locals: { title: @cluster.to_human, subtitle: 'Topics' } %> <div class="level"a> <%= render( partial: 'kafka_command/shared/search_bar', locals: { resources: @topics, resource_name: 'topic', resource_path: cluster_topics_path, filter_property: :name } ) %> <div class="level-right"> <%= link_to 'Add Topic', new_cluster_topic_path, class: 'button is-primary is-small' %> </div> </div> <table class="table is-striped is-fullwidth is-bordered"> <thead> <th>Name</th> <th>Partitions</th> <th>Replication Factor</th> <th>Broker Spread</th> <th></th> </thead> <tbody> <% @topics.each do |topic| %> <tr> <td><%= link_to topic.name, topic_path(topic) %></td> <td><%= topic.partitions.count %></td> <td><%= topic.replication_factor %></td> <td><%= "#{topic.brokers_spread} %" %></td> <td> <%= link_to "#{topic_path(topic)}/edit" do %> <span class="icon has-text-grey"><i class="fas fa-edit"></i></span> <% end %> <%= link_to topic_path(topic), method: :delete, data: { confirm: "Are you sure you want to delete topic #{topic.name} ?" } do %> <span class="icon has-text-danger"><i class="fas fa-trash-alt"></i></span> <% end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
3 entries across 3 versions & 1 rubygems