From 91255b8150178d712567e9c6ab8ae48761ec3514 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Sun, 9 Sep 2012 22:37:27 +0000 Subject: more compact list --- test_index.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'test_index.php') 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 = << - %s - %s - %s - %s - %s/%s + %s + by %s + %s + %s + %s/%s 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('%s', $typelink, $typestr) : $typestr; - $s .= ''; 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 .= '' . $tdiff . ''; + $tdiff = floor(($p['buildtime']['end'] - $p['buildtime']['start']) / 60)*60; @$buildtime_stats[timediff(0, $tdiff)] += 1; } - $s .= ''; - $s .= ''; + $s .= ''; } echo sprintf('
  • %d packages submitted in the past %d hours:

    ', $total, $max_modified * 24); // Last submitted packages echo '', - ' - - ', + ' + + + + ', '', $s, '', '
    SubmittedUserPackageTargetMediaStatusBuild time
    PackageTarget, mediaStatus
    '; @@ -326,14 +326,14 @@ else { class: "build-files-list", id: elId, - html: 'loading' + html: 'loading' } )); $.get( "/log_files.php", {"k": $(this).attr("href")}, function (data) { - $("#" + elId).html('' + data + ''); + $("#" + elId).html('' + data + ''); } ); } else { -- cgit v1.2.1