<% # Copyright (C) 2018 Colin Darie , 2018 Evolix %> <% # License: GNU AGPL-3+ (see full text in LICENSE file) %>
<% Check.kinds.keys.map(&:to_sym).each do |kind_name| %> <%= link_to t(".kind_#{kind_name}"), checks_path(check_button_criterias(kind: kind_name)), class: check_button_scope_class(kind: kind_name) + " " + kind_name.to_s %> <% end %>
<%= link_to t(".with_error"), checks_path(check_button_criterias(recurrent_failures: true)), class: check_button_scope_class(recurrent_failures: true) + " with_error" %>
<%= form_tag(checks_path, method: :get) do %>
<%= search_field_tag :by_domain, current_scopes[:by_domain], class: "form-control form-control-sm", placeholder: ".com, example.org, …" %>
<%= button_tag Octicons::Octicon.new("search").to_svg.html_safe, class: "btn btn-sm btn-outline-secondary" %>
<%- current_criterias.except(:by_domain).compact.each_pair do |name, value| %> <%= hidden_field_tag name, value%> <% end %>
<%= link_to Octicons::Octicon.new("x").to_svg.html_safe, checks_path, class: "btn btn-sm btn-outline-danger" %>
<% end %>