Project

General

Profile

0001-Move-Total-line-to-bottom-of-list-and-emphasize-it.patch

Frank Sweetser, 12/03/2009 03:00 PM

View differences:

app/views/reports/show.rhtml
24 24
      <td>
25 25
        <table width="100%">
26 26
          <% @report.log.metrics["time"].values.each do |name, label, value|-%>
27
	  <% if label == 'Total' then -%>
28
	  <%   @totaltime = value -%>
29
	  <%   next -%>
30
	  <% end -%>
27 31
            <tr>
28 32
              <td> <%= h label %> </td>
29
              <td> <%= h value %> </td>
33
              <td> <%= h value.round_with_precision(4) %> </td>
30 34
            </tr>
31 35
          <% end %>
36
	  <tr><td class="last_row">Total</td><td class="last_row"><%= h @totaltime.round_with_precision(4) %></td></tr>
32 37
        </table>
33 38
      </td>
34 39
    </tr>
public/stylesheets/style.css
163 163
#tables tfoot th, tfoot td { background: #2C5755; color: #fff; }
164 164
#tables th + td { padding-left: .5em; }
165 165
td.puppet_status-column {width: 80px;}
166
td.last_row { font-weight: bold; }
166 167

  
167 168
.fieldWithErrors input.text-input,
168 169
.fieldWithErrors select,
169
-