Sha256: fd373cebe16f7d703cedc2a059aba9db79bd48b536905af22d16e7502614a7e5

Contents?: true

Size: 1.3 KB

Versions: 102

Compression:

Stored size: 1.3 KB

Contents

<% th_style = "text-align: left; border-collapse: collapse;  background: #f5f5f5; background: linear-gradient(#f5f5f5, #e8e8e8); padding: 4px; border: 1px solid #cccccc;" %>
<% td_style = "text-align: left; border-collapse: collapse; background-color: #FFFFFF; padding: 4px; border: 1px solid #cccccc;" %>
<tr>
  <th style="<%= th_style %>">
    <%= _('Hostname') %>
  </th>
  <th style="<%= th_style %>">
    <%= _('Passed') %>
  </th>
  <th style="<%= th_style %>">
    <%= _('Failed') %>
  </th>
  <th style="<%= th_style %>">
    <%= _('Other') %>
  </th>
  <th style="<%= th_style %>">
    <%= _('Changed?') %>
  </th>
</tr>
<% hosts.each do |host| %>
  <tr>
    <% last_report = host.reports_for_policy(policy, 1).first %>

    <%= render "host_mailer/link_to_host", :host => host %>
    <% if last_report %>
      <td style="<%= td_style %>">
        <%= last_report.passed %>
      </td>
      <td style="<%= td_style %>">
        <%= last_report.failed %>
      </td>
      <td style="<%= td_style %>">
        <%= last_report.othered %>
      </td>
      <td style="<%= td_style %>">
        <%= host.scap_status_changed?(policy) ? _('Yes') : _('No') %>
      </td>
    <% else %>
      <td style="<%= td_style %>" colspan="4">
        <%= _('No ARF reports for this policy') %>
      </td>
    <% end %>
  </tr>
<% end %>

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
foreman_openscap-2.0.1 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.9 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-2.0.0 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.8 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.7 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.6 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.5 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.4 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.3 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.2 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.1 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-1.0.0 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.12.3 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.11.5 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.12.2 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.12.1 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.12.0 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.11.4 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.11.3 app/views/foreman_openscap/policy_mailer/_hosts.erb
foreman_openscap-0.11.2 app/views/foreman_openscap/policy_mailer/_hosts.erb