foreman/app/views/hosts/_metrics.html.erb @ 82e47ae0
82e47ae0 | Amos Benari | <table class="table table-bordered table-striped table-condensed">
|
|
72e65b31 | Ohad Levy | <tr>
|
|
01984fb7 | Amos Benari | <th>Report Status</th>
|
|
<th></th>
|
|||
3eecf845 | Amos Benari | </tr>
|
|
<% report_summary.each do |name, value| -%>
|
|||
<tr class="<%= cycle("even", "odd") -%>">
|
|||
23161409 | Amos Benari | <td> <%= name %> </td>
|
|
82e47ae0 | Amos Benari | <% style = (name =~ /failed|failed_restart/ and value > 0) ? "label label-important" : ""-%>
|
|
23161409 | Amos Benari | <td><p class="<%= style %>"> <%= value %> </p></td>
|
|
72e65b31 | Ohad Levy | </tr>
|
|
<% end -%>
|
|||
</table>
|