Skip to content

Business intelligence made simple

Switched to content_tag [skip ci]

Andrew Kane6a00fbf0338a
diff --git a/app/views/blazer/checks/index.html.erb b/app/views/blazer/checks/index.html.erb
index 28484781..8e2a442f 100644
--- a/app/views/blazer/checks/index.html.erb
+++ b/app/views/blazer/checks/index.html.erb
@@ -39,7 +39,7 @@
<td><%= link_to check.query.name, check.query %> <span class="text-muted"><%= check.try(:check_type).to_s.gsub("_", " ") %></span></td>
<td>
<% if check.state %>
- <small class="check-state <%= check.state.parameterize.gsub("-", "_") %>"><%= check.state.upcase %></small>
+ <%= content_tag :small, check.state.upcase, class: "check-state #{check.state.parameterize.gsub("-", "_")}" %>
<% end %>
</td>
<td><%= check.schedule if check.respond_to?(:schedule) %></td>