Feature #107 ยป 0001-Move-Total-line-to-bottom-of-list-and-emphasize-it.patch
app/views/reports/show.rhtml | ||
---|---|---|
<td>
|
||
<table width="100%">
|
||
<% @report.log.metrics["time"].values.each do |name, label, value|-%>
|
||
<% if label == 'Total' then -%>
|
||
<% @totaltime = value -%>
|
||
<% next -%>
|
||
<% end -%>
|
||
<tr>
|
||
<td> <%= h label %> </td>
|
||
<td> <%= h value %> </td>
|
||
<td> <%= h value.round_with_precision(4) %> </td>
|
||
</tr>
|
||
<% end %>
|
||
<tr><td class="last_row">Total</td><td class="last_row"><%= h @totaltime.round_with_precision(4) %></td></tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
public/stylesheets/style.css | ||
---|---|---|
#tables tfoot th, tfoot td { background: #2C5755; color: #fff; }
|
||
#tables th + td { padding-left: .5em; }
|
||
td.puppet_status-column {width: 80px;}
|
||
td.last_row { font-weight: bold; }
|
||
.fieldWithErrors input.text-input,
|
||
.fieldWithErrors select,
|