<% blazer_title "Checks" %> <% @checks.each do |check| %> <% end %>
Query State Run Notify
<%= link_to check.query.name, check.query %> <%= check.try(:check_type).to_s.gsub("_", " ") %> <% if check.state %> "><%= check.state.upcase %> <% end %> <%= check.schedule if check.respond_to?(:schedule) %>
    <% check.split_emails.each do |email| %>
  • <%= email %>
  • <% end %> <% check.split_slack_channels.each do |channel| %>
  • <%= channel %>
  • <% end %>
<%= link_to "Edit", edit_check_path(check), class: "btn btn-info" %> <%= button_to "Run Now", refresh_query_path(check.query), class: "btn btn-primary" %>
<%= javascript_tag nonce: true do %> $("#search").on("keyup", function() { var value = $(this).val().toLowerCase() $("#checks tbody tr").filter( function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }) }).focus() <% end %>