[shell-perf-web] Add units to the tooltips for metrics



commit 0258db7f15fccee12e86c1822655a1594247de13
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat May 22 23:23:28 2010 -0400

    Add units to the tooltips for metrics
    
    Add the units for the metric after the metric in parentheses; a
    bit crude (the unit strings are only semi-human-readable), but
    helps where the description doesn't mention the units at all.

 templates/include/report_table.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/templates/include/report_table.html b/templates/include/report_table.html
index 782e5ed..6913acc 100644
--- a/templates/include/report_table.html
+++ b/templates/include/report_table.html
@@ -15,7 +15,7 @@
   <tbody>
     {% for row in report_table.rows %}
     <tr class="metric-row metric-row-{% cycle 'odd' 'even' %}">
-      <th title="{{ row.metric.description }}">{{ row.metric.name }}</th>
+      <th title="{{ row.metric.description }} ({{row.metric.units}})">{{ row.metric.name }}</th>
       {% for v in row.values %}
       <td>{{ v }}</td>
       {% endfor %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]