Sha256: dfa5ea9070a0c211dbfb4e8e09d3a13cbd85e066bb6d6c943f71d5fc044c3089

Contents?: true

Size: 941 Bytes

Versions: 5

Compression:

Stored size: 941 Bytes

Contents

<tr>
  <th style="border: 1px solid #FF9933;
    border-collapse: collapse;
    padding: 4px;
    text-align:center;
    background-color: #FF9933;">Hostname
  </th>
  <% list.first.last[:metrics].keys.each do |header| -%>
    <th style="border: 1px solid #FF9933;
      border-collapse: collapse;
      padding: 4px;
      text-align:center;
      background-color: #FF9933;"><%= header %>
    </th>
  <% end -%>
</tr>
<% list.each do |host,params| -%>
  <tr>
    <%= render 'link_to_host', :host => host %>
    <% params[:metrics].each do |m,v| -%>
      <% if m =~ /failed|failed_restart/ and v > 0 -%>
        <td style="color:red;font-weight:bold;border:1px solid #FF9933;border-collapse:collapse;padding:4px;background-color:#FFFFFF;">
      <% else -%>
        <td style="border:1px solid #FF9933;border-collapse:collapse;padding:4px;background-color:#FFFFFF;">
      <% end -%>
      <%= v %>
    </td>
  <% end -%>
</tr>
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/host_mailer/_active_hosts.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/host_mailer/_active_hosts.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/host_mailer/_active_hosts.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/host_mailer/_active_hosts.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/host_mailer/_active_hosts.html.erb