Sha256: 8d9320a69a8361dfba01181d87ed7bdc9b8c787abee13545cebfbb5f3bb7f913

Contents?: true

Size: 1.74 KB

Versions: 38

Compression:

Stored size: 1.74 KB

Contents

<table class="<%= table_css_classes('table-fixed') %>">
  <tr>
    <th><%= sort :name %></th>
    <th><%= sort :content %></th>
    <th><%= sort :profile %></th>
    <th><%= sort :tailoring_file, :as => _('Tailoring File') %></th>
    <th><%= sort :tailoring_file_profile, :as => _('Effective Profile') %></th>
    <th><%= _('Actions') %></th>
  </tr>
  <% for policy in @policies %>
    <tr>
      <td class="ellipsis">
        <%= link_to_if_authorized(policy.name.to_s, hash_for_edit_policy_path(:id => policy.id)) %>
      </td>
      <td>
        <% if !policy.scap_content.nil? %>
          <%= link_to_if_authorized policy.scap_content.title,
                                         hash_for_edit_scap_content_path(:id => policy.scap_content) %>
        <% end %>
      </td>
      <td>
        <%= policy_profile_from_scap_content policy %>
      </td>
      <td>
        <% if policy.tailoring_file %>
          <%=  link_to_if_authorized policy.tailoring_file.name, hash_for_edit_tailoring_file_path(:id => policy.tailoring_file_id) %>
        <% else %>
          <%= _('None') %>
        <% end%>
      </td>
      <td>
        <%= effective_policy_profile policy %>
      </td>
      <td>
        <%= action_buttons(
                display_link_if_authorized(_("Dashboard"), hash_for_policy_dashboard_policy_path(:id => policy.id)),
                display_link_if_authorized(_("Show Guide"), hash_for_policy_path(:id => policy.id)),
                display_delete_if_authorized(hash_for_policy_path(:id => policy.id),
                                             :data => {:confirm => _("Delete compliance policy %s with all of its reports?") % policy.name})
            ) %>
      </td>
    </tr>
  <% end %>
</table>

<%= will_paginate_with_info @policies %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
foreman_openscap-6.0.0 app/views/policies/_list.html.erb
foreman_openscap-5.2.3 app/views/policies/_list.html.erb
foreman_openscap-5.2.2 app/views/policies/_list.html.erb
foreman_openscap-5.1.1 app/views/policies/_list.html.erb
foreman_openscap-5.2.1 app/views/policies/_list.html.erb
foreman_openscap-5.2.0 app/views/policies/_list.html.erb
foreman_openscap-5.1.0 app/views/policies/_list.html.erb
foreman_openscap-5.0.0 app/views/policies/_list.html.erb
foreman_openscap-4.3.3 app/views/policies/_list.html.erb
foreman_openscap-4.3.2 app/views/policies/_list.html.erb
foreman_openscap-4.3.1 app/views/policies/_list.html.erb
foreman_openscap-4.3.0 app/views/policies/_list.html.erb
foreman_openscap-4.1.3 app/views/policies/_list.html.erb
foreman_openscap-4.0.6 app/views/policies/_list.html.erb
foreman_openscap-4.2.0 app/views/policies/_list.html.erb
foreman_openscap-4.0.5 app/views/policies/_list.html.erb
foreman_openscap-4.1.2 app/views/policies/_list.html.erb
foreman_openscap-4.1.1 app/views/policies/_list.html.erb
foreman_openscap-4.1.0 app/views/policies/_list.html.erb
foreman_openscap-4.0.4 app/views/policies/_list.html.erb