summaryrefslogtreecommitdiffstats
path: root/test_index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-09 22:37:27 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-09 22:37:27 +0000
commit91255b8150178d712567e9c6ab8ae48761ec3514 (patch)
tree057827d62d91893d07106211d767f60f4e2135d8 /test_index.php
parent7029b74e14336f50c76b40cdfb1a1af1f5832693 (diff)
downloadpkgsubmit-91255b8150178d712567e9c6ab8ae48761ec3514.tar
pkgsubmit-91255b8150178d712567e9c6ab8ae48761ec3514.tar.gz
pkgsubmit-91255b8150178d712567e9c6ab8ae48761ec3514.tar.bz2
pkgsubmit-91255b8150178d712567e9c6ab8ae48761ec3514.tar.xz
pkgsubmit-91255b8150178d712567e9c6ab8ae48761ec3514.zip
more compact list
Diffstat (limited to 'test_index.php')
-rw-r--r--test_index.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/test_index.php b/test_index.php
index dd91ea9..4e70c0b 100644
--- a/test_index.php
+++ b/test_index.php
@@ -192,11 +192,11 @@ if (!is_null($upload_time)) {
$s = '';
$tmpl = <<<T
<tr class="%s">
- <td class="timeinfo">%s</td>
- <td><a rel="nofollow" href="?user=%s">%s</a></td>
- <td><a rel="nofollow" href="http://svnweb.mageia.org/packages?view=revision&revision=%d" title="%s">%s</a></td>
- <td>%s</td>
- <td>%s/%s</td>
+ <td><a rel="nofollow" href="http://svnweb.mageia.org/packages?view=revision&revision=%d" title="%s">%s</a>
+ <span class="committer">by <a rel="nofollow" href="?user=%s">%s</a></span>
+ <span class="timeinfo">%s</span></td>
+ <td>%s
+ <span class="media">%s/%s</span></td>
<td class="status-box"></td>
T;
@@ -208,11 +208,11 @@ if ($total > 0) {
$s .= sprintf($tmpl,
$p['type'],
- timediff(key2timestamp($key)) . ' ago',
- $p['user'], $p['user'],
$p['revision'],
addslashes($p['summary']),
$p['package'],
+ $p['user'], $p['user'],
+ timediff(key2timestamp($key)) . ' ago',
$p['version'],
$p['media'], $p['section']
);
@@ -242,24 +242,24 @@ if ($total > 0) {
sprintf('<a rel="nofollow" href="%s" class="status-link">%s</a>', $typelink, $typestr) :
$typestr;
- $s .= '</td><td class="timeinfo">';
if ($p['type'] == 'uploaded') {
$tdiff = timediff($p['buildtime']['start'], $p['buildtime']['end']); // use $p['buildtime']['diff']; instead?
- $s .= $tdiff;
- $tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60;
+ $s .= '<span class="timeinfo">' . $tdiff . '</span>';
+ $tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60;
@$buildtime_stats[timediff(0, $tdiff)] += 1;
}
- $s .= '</td>';
- $s .= '</tr>';
+ $s .= '</td></tr>';
}
echo sprintf('<li><p><span class="figure">%d</span> packages submitted in the past %d&nbsp;hours:</p>', $total, $max_modified * 24);
// Last submitted packages
echo '<table id="submitted-packages">',
- '<thead><tr><th>Submitted</th><th>User</th>
- <th>Package</th><th>Target</th><th>Media</th>
- <th colspan="2">Status</th><th>Build time</th></tr></thead>',
+ '<thead><tr>
+ <th>Package</th>
+ <th>Target, media</th>
+ <th colspan="2">Status</th>
+ </tr></thead>',
'<tbody>', $s, '</tbody>',
'</table>';
@@ -326,14 +326,14 @@ else
{
class: "build-files-list",
id: elId,
- html: '<td colspan="8">loading</td>'
+ html: '<td colspan="4">loading</td>'
}
));
$.get(
"/log_files.php",
{"k": $(this).attr("href")},
function (data) {
- $("#" + elId).html('<td colspan="8">' + data + '</td>');
+ $("#" + elId).html('<td colspan="4">' + data + '</td>');
}
);
} else {