Sha256: 13c1323cd2c64634fffebd658bfb84ede3153e11869d9dba82b4374a0559039c

Contents?: true

Size: 1.58 KB

Versions: 34

Compression:

Stored size: 1.58 KB

Contents

<% title _("Discovery Rules") %>
<% title_actions new_link(_("Create Rule")), help_button %>

<table class="<%= table_css_classes('table-fixed') %>">
  <tr>
    <th><%= sort :name, :as => s_("DiscoveryRule|Name") %></th>
    <th><%= sort :priority, :as => s_("DiscoveryRule|Priority") %></th>
    <th><%= sort :search, :as => s_("DiscoveryRule|Query") %></th>
    <th><%= _("Host Group") %></th>
    <th><%= _("Hosts/Limit") %></th>
    <th><%= sort :location, :as => _('Location') %></th>
    <th><%= sort :organization, :as => _('Organization') %></th>
    <th><%= sort :enabled, :as => s_("DiscoveryRule|Enabled") %></th>
    <th><%= _("Actions") %></th>
  </tr>
  <% for rule in @discovery_rules %>
    <tr>
      <td class='col-md-3'><%= link_to_if_authorized(trunc_with_tooltip(rule.name), hash_for_edit_discovery_rule_path(:id => rule).merge(:auth_object => rule, :authorizer => authorizer)) %></td>
      <td><%= rule.priority %></td>
      <td><%= trunc_with_tooltip(rule.search) %></td>
      <td><%= label_with_link(rule.hostgroup, 26, authorizer) %></td>
      <td><%= rule.hosts.count %> / <%= rule.max_count %></td>
      <td><%= rule.locations.find_by(title: Location.current.try(:title)).try(:title) || rule.locations.pluck(:title).join(",") %></td>
      <td><%= rule.organizations.find_by(title: Organization.current.try(:title)).try(:title) || rule.organizations.pluck(:title).join(",") %></td>
      <td><%= checked_icon rule.enabled %></td>
      <td><%= action_buttons(*permitted_discovery_actions(rule)) %></td>
    </tr>
  <% end %>
</table>
<%= will_paginate_with_info @discovery_rules %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
foreman_discovery-25.0.0 app/views/discovery_rules/index.html.erb
foreman_discovery-24.0.2 app/views/discovery_rules/index.html.erb
foreman_discovery-23.0.2 app/views/discovery_rules/index.html.erb
foreman_discovery-24.0.1 app/views/discovery_rules/index.html.erb
foreman_discovery-24.0.0 app/views/discovery_rules/index.html.erb
foreman_discovery-23.0.1 app/views/discovery_rules/index.html.erb
foreman_discovery-23.0.0 app/views/discovery_rules/index.html.erb
foreman_discovery-22.0.4 app/views/discovery_rules/index.html.erb
foreman_discovery-21.0.5 app/views/discovery_rules/index.html.erb
foreman_discovery-22.0.2 app/views/discovery_rules/index.html.erb
foreman_discovery-21.0.4 app/views/discovery_rules/index.html.erb
foreman_discovery-21.0.3 app/views/discovery_rules/index.html.erb
foreman_discovery-21.0.2 app/views/discovery_rules/index.html.erb
foreman_discovery-19.0.5 app/views/discovery_rules/index.html.erb
foreman_discovery-19.0.4 app/views/discovery_rules/index.html.erb
foreman_discovery-21.0.1 app/views/discovery_rules/index.html.erb
foreman_discovery-19.0.3 app/views/discovery_rules/index.html.erb
foreman_discovery-21.0.0 app/views/discovery_rules/index.html.erb
foreman_discovery-19.0.2 app/views/discovery_rules/index.html.erb
foreman_discovery-20.0.1 app/views/discovery_rules/index.html.erb