summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-01-13 15:48:16 +0000
committerRomain d'Alverny <rda@mageia.org>2011-01-13 15:48:16 +0000
commit17ca0a5c1ecf7fc9dc0e29547bf0fdbe20b3fb25 (patch)
tree395a4b55a96c53e507f867bfbced2691e25b3e58 /index.php
parentcefc31991aef9b1fe54b13019d09ec3b2da1a78d (diff)
downloadpkgsubmit-17ca0a5c1ecf7fc9dc0e29547bf0fdbe20b3fb25.tar
pkgsubmit-17ca0a5c1ecf7fc9dc0e29547bf0fdbe20b3fb25.tar.gz
pkgsubmit-17ca0a5c1ecf7fc9dc0e29547bf0fdbe20b3fb25.tar.bz2
pkgsubmit-17ca0a5c1ecf7fc9dc0e29547bf0fdbe20b3fb25.tar.xz
pkgsubmit-17ca0a5c1ecf7fc9dc0e29547bf0fdbe20b3fb25.zip
move feedback string at the end of the line; show stats on top
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/index.php b/index.php
index fad3367..fee09a6 100644
--- a/index.php
+++ b/index.php
@@ -139,10 +139,12 @@ function key2date($key) {
<title><?php echo $title ?></title>
<meta name="robots" content="<?php echo $robots; ?>">
<style type="text/css">
+ .clear { clear: both; }
table {
border-spacing: 0;
font-family: Helvetica; font-size: 80%;
border: 1px solid #ccc;
+ float: left;
}
table tr { padding: 0; margin: 0; }
table th { padding: 0.2em 0.5em; margin: 0; border-bottom: 2px solid #ccc; border-right: 1px solid #ccc; }
@@ -198,7 +200,6 @@ $tmpl = <<<T
<td>%s</td>
<td>%s/%s</td>
<td class="status-box"></td>
- <td>%s</td>
T;
// count all packages statuses
@@ -232,8 +233,7 @@ foreach ($pkgs as $key => $p) {
$p['user'], $p['user'],
$p['package'],
$p['version'],
- $p['media'], $p['section'],
- sprintf($badges[$p['type']], $p['user'])
+ $p['media'], $p['section']
);
$typelink = '';
@@ -248,7 +248,9 @@ foreach ($pkgs as $key => $p) {
sprintf('<a href="%s">%s</a>', $typelink, $p['type']) :
$p['type'];
- $s .= '</td></tr>';
+ $s .= '</td>';
+ $s .= '<td>' . sprintf($badges[$p['type']], $p['user']) . '</td>';
+ $s .= '</tr>';
}
echo $s, '</table>';
@@ -258,6 +260,7 @@ foreach ($stats as $k => $v) {
$k, $v, round($v/$total*100));
}
$s .= '</table></div>';
+$s .= '<div class="clear"></div>';
echo $s;