diff options
-rw-r--r-- | style.css | 4 | ||||
-rw-r--r-- | test_index.php | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -32,8 +32,8 @@ tr.todo td.status-box { background: white; } tr.building td.status-box { background: yellow; } tr.partial td.status-box { background: blue; } -td.timeinfo { font-size: 85%; text-align: right; color: #444444; } -td.percent { text-align: right; } +.timeinfo { font-size: 85%; text-align: right; color: #444444; } +.number, .percent { text-align: right; } #stats { float: right; } #score { margin-bottom: 2em; font-family: Helvetica, Verdana, Arial, sans-serif; } diff --git a/test_index.php b/test_index.php index 8449c10..61ddb79 100644 --- a/test_index.php +++ b/test_index.php @@ -402,7 +402,7 @@ if ($total > 0) { $s .= '<table style="width: 100%"><caption>Stats.</caption><tr><th colspan="2">Status</th><th>Count</th><th>%</th></tr>'; foreach ($stats as $k => $v) { - $s .= sprintf('<tr class="%s"><td class="status-box"></td><td>%s</td><td>%d</td><td>%d%%</td></tr>', + $s .= sprintf('<tr class="%s"><td class="status-box"></td><td class="number">%s</td><td>%d</td><td class="percent">%d%%</td></tr>', $k, $k, $v, round($v/$total*100)); } |