Project

General

Profile

« Previous | Next » 

Revision 3eecf845

Added by Amos Benari about 13 years ago

  • ID 3eecf845feb5e7cff5ef380297be6d1f102f80d4

fixes #285 - Use Charting system which can work offline

this includes:
  • dashboard charts
  • statistics page
  • host show page

additionally, main menu buttons and bookmarks drop down are easier to handle and read

View differences:

app/views/hosts/_metrics.html.erb
<table>
<table class="list">
<tr>
<% report_summary.each do |th,td| -%>
<th> <%= th %> </th>
<% style = (th =~ /failed|skipped|failed_restart/ and td > 0) ? "color:red;font-weight:bold" : ""-%>
<td style="<%= style %>"> <%= td %> </td>
<th>Description</th>
<th>Data</th>
</tr>
<% report_summary.each do |name, value| -%>
<tr class="<%= cycle("even", "odd") -%>">
<td style="width: 240px;"> <%= name %> </td>
<% style = (name =~ /failed|skipped|failed_restart/ and value > 0) ? "color:red;font-weight:bold" : ""-%>
<td style="<%= style %>"> <%= value %> </td>
</tr>
<% end -%>
</table>

Also available in: Unified diff