<% view_title 'Consumers Groups Offsets Details' %> <%== partial 'health/tabs' %>
<% if @stats.empty? %> <%== partial 'health/no_data' %> <% end %> <% @stats.each_with_index do |(cg_name, details), index| %>

<%= cg_name %>

<% topics = details[:topics] %> <% topics.each_with_index do |(topic_name, partitions), index| %>
<% partitions.each do |partition_id, details| %> <%== partial( 'health/partition_offset', locals: { topic_name: topic_name, partition_id: partition_id, details: details } ) %> <% end %>
<%= topic_name %>
<%== sort_link('Partition', :id) %> <%== sort_link(:lag_hybrid) %> Offsets
<%== sort_link(:committed_offset) %> <%== sort_link('Committed change', :committed_offset_fd) %> <%== sort_link(:stored_offset) %> <%== sort_link('Stored change', :stored_offset_fd) %> <%== sort_link(:lo_offset) %> <%== sort_link(:hi_offset) %> <%== sort_link('High change', :hi_offset_fd) %> <%== sort_link(:ls_offset) %> <%== sort_link('LSO change', :ls_offset_fd) %> <%== sort_link('LSO state', :lso_risk_state) %>
<%== partial 'health/table_metadata', locals: { details: details } %>
<% end %> <% end %>