Sha256: 858647a805aae6ee2bda15871d0f50bd5db14aecd761ca43712153865dd823a9
Contents?: true
Size: 1.63 KB
Versions: 5
Compression:
Stored size: 1.63 KB
Contents
<% if command_message.is_a?(Array) %> <%== partial 'shared/not_a_message' %> <% else %> <% command = command_message.payload %> <% if command[:schema_version] == @schema_version %> <tr> <td> <% color = command[:type] == 'result' ? 'success' : 'primary' %> <span class="badge bg-<%= color %> badge-topic"> <%= command[:type] %> </span> </td> <td> <% color = case command[:command][:name] when 'probe' 'secondary' when 'quiet' 'warning' when 'stop' 'danger' else 'secondary' end %> <span class="badge bg-<%= color %> badge-topic"> <%= command[:command][:name] %> </span> </td> <td> <% if command[:process][:id] == '*' %> * <% else %> <a href="<%= root_path('consumers', command[:process][:id], 'subscriptions') %>"> <%= truncate(command[:process][:id], strategy: :middle) %> </a> <% end %> </td> <td> <%== relative_time command[:dispatched_at] %> </td> <td class="text-center"> <a href="<%= root_path('commands', command_message.offset) %>" class="btn btn-sm btn-secondary text-white"> Details </a> </td> </tr> <% else %> <tr> <td colspan="100" class="text-center text-muted"> Incompatible command schema. This command message schema does not match the Karafka Web UI schema. </td> </tr> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems