lib/karafka/web/ui/pro/views/consumers/consumer/_partition.erb in karafka-web-0.4.0 vs lib/karafka/web/ui/pro/views/consumers/consumer/_partition.erb in karafka-web-0.4.1

- old
+ new

@@ -18,10 +18,16 @@ <span class="badge <%= lag_trend_bg(partition.lag_stored_d) %>"> <%= partition.lag_stored_d %> </span> </td> <td> - <%= partition.committed_offset %> + <% if partition.committed_offset.to_i < 0 %> + <span class="badge bg-secondary" title="Not available until first offset commit"> + N/A + </span> + <% else %> + <%= partition.committed_offset %> + <% end %> </td> <td> <% if partition.stored_offset.to_i < 0 %> <span class="badge bg-secondary" title="Not available until first offset commit"> N/A