summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-01-13 15:54:31 +0000
committerRomain d'Alverny <rda@mageia.org>2011-01-13 15:54:31 +0000
commit419bd1bb05c4988332e61005f2e40c7b3216367a (patch)
tree9fbeb9a90feae91eddfc56b416d9690fd23d7869 /index.php
parent2449229c5dc81310ce84510b440d3106884d3efb (diff)
downloadpkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar
pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar.gz
pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar.bz2
pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.tar.xz
pkgsubmit-419bd1bb05c4988332e61005f2e40c7b3216367a.zip
stats box update
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 386ce7e..8a26916 100644
--- a/index.php
+++ b/index.php
@@ -256,10 +256,10 @@ foreach ($pkgs as $key => $p) {
}
echo $s, '</table>';
-$s = '<div id="stats"><table><tr><th>Status</th><th>Count</th><th>%</th></tr>';
+$s = '<div id="stats"><table><caption>Stats.</caption><tr><th colspan="2">Status</th><th>Count</th><th>%</th></tr>';
foreach ($stats as $k => $v) {
- $s .= sprintf('<tr><th>%s</th><td>%d</td><td>%d%%</td></tr>',
- $k, $v, round($v/$total*100));
+ $s .= sprintf('<tr class="%s"><td class="status-box"></td><td>%s</td><td>%d</td><td>%d%%</td></tr>',
+ $k, $k, $v, round($v/$total*100));
}
$s .= '</table></div>';
$s .= '<div class="clear"></div>';