From 57ac5c25f7b12eae67ca2c9c79f4f4ddb0114469 Mon Sep 17 00:00:00 2001 From: Frank Sweetser Date: Thu, 3 Dec 2009 09:57:35 -0500 Subject: [PATCH] Move "Total" line to bottom of list and emphasize it --- app/views/reports/show.rhtml | 7 ++++++- public/stylesheets/style.css | 1 + 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/app/views/reports/show.rhtml b/app/views/reports/show.rhtml index 410f82d..e8a661b 100644 --- a/app/views/reports/show.rhtml +++ b/app/views/reports/show.rhtml @@ -24,11 +24,16 @@ <% @report.log.metrics["time"].values.each do |name, label, value|-%> + <% if label == 'Total' then -%> + <% @totaltime = value -%> + <% next -%> + <% end -%> - + <% end %> +
<%= h label %> <%= h value %> <%= h value.round_with_precision(4) %>
Total<%= h @totaltime.round_with_precision(4) %>
diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index b4bf921..1e8aed3 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -163,6 +163,7 @@ td, th { padding: 3px 3px .75em 3px; line-height: 1.3em; } #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, -- 1.6.5.2