lib/karafka/web/ui/views/errors/_detail.erb in karafka-web-0.5.2 vs lib/karafka/web/ui/views/errors/_detail.erb in karafka-web-0.6.0
- old
+ new
@@ -19,11 +19,19 @@
<tr>
<td>
<%= k %>
</td>
<td>
- <% if k == :occurred_at %>
+ <% case k
+ when :occurred_at
+ %>
<%== relative_time v %>
+ <% when :error_class %>
+ <code><%= v %></code>
+ <% when :type %>
+ <span class="badge bg-secondary">
+ <%= v %>
+ </span>
<% else %>
<%= v %>
<% end %>
</td>
</tr>