% title _("Discovery Rules") %> <% title_actions display_link_if_authorized(_("New Rule"), hash_for_new_discovery_rule_path), help_path %>
<%= sort :name, :as => s_("DiscoveryRule|Name") %> | <%= sort :priority, :as => s_("DiscoveryRule|Priority") %> | <%= sort :search, :as => s_("DiscoveryRule|Query") %> | <%= _("Host group") %> | <%= _("Hosts/limit") %> | <%= sort :enabled, :as => s_("DiscoveryRule|Enabled") %> | |
---|---|---|---|---|---|---|
<%= link_to_if_authorized(trunc(rule.name), hash_for_edit_discovery_rule_path(:id => rule).merge(:auth_object => rule, :authorizer => authorizer)) %> | <%= rule.priority %> | <%= rule.search %> | <%= rule.hostgroup.name %> | <%= rule.hosts.count %> / <%= rule.max_count %> | <%= rule.enabled %> | <%= action_buttons(*permitted_discovery_actions(rule)) %> |