Sha256: 0d3b218b515c0b358e0b9852d195b6f67f7e7b08da023a9c88b84df370630b01

Contents?: true

Size: 1.6 KB

Versions: 10

Compression:

Stored size: 1.6 KB

Contents

<table class="table table-bordered table-striped table-fixed">
  <tr>
    <th><%= _('Name') %></th>
    <th><%= _('Content') %></th>
    <th><%= _('Profile') %></th>
    <th><%= _('Tailoring File') %></th>
    <th><%= _('Effective Profile') %></th>
    <th></th>
  </tr>
  <% for policy in @policies %>
    <tr>
      <td class="ellipsis">
        <%= link_to_if_authorized(policy.name.to_s, hash_for_policy_dashboard_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(_("Show Guide"), hash_for_policy_path(:id => policy.id)),
                display_link_if_authorized(_("Edit"), hash_for_edit_policy_path(:id => policy.id)),
                display_delete_if_authorized(hash_for_policy_path(:id => policy.id),
                                             :confirm => _("Delete compliance policy %s with all of its reports?") % policy.name)
            ) %>
      </td>
    </tr>
  <% end %>
</table>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 app/views/policies/_list.html.erb
foreman_openscap-0.8.6 app/views/policies/_list.html.erb
foreman_openscap-0.8.5 app/views/policies/_list.html.erb
foreman_openscap-0.7.12 app/views/policies/_list.html.erb
foreman_openscap-0.9.0 app/views/policies/_list.html.erb
foreman_openscap-0.8.4 app/views/policies/_list.html.erb
foreman_openscap-0.7.11 app/views/policies/_list.html.erb
foreman_openscap-0.7.10 app/views/policies/_list.html.erb
foreman_openscap-0.8.3 app/views/policies/_list.html.erb
foreman_openscap-0.7.9 app/views/policies/_list.html.erb