Browse Source

php - don't colour orphans or rejects on the blocks page

master
kanoi 9 years ago
parent
commit
706b60ecc7
  1. 14
      pool/page_blocks.php

14
pool/page_blocks.php

@ -277,9 +277,17 @@ function doblocks($data, $user)
if ($diffratio > 0) if ($diffratio > 0)
{ {
$pct = 100.0 * $diffratio; $pct = 100.0 * $diffratio;
list($fg, $bg) = pctcolour($pct); if ($conf != 'O' and $conf != 'R')
$bpct = "<font color=$fg>$approx".number_format($pct, 3).'%</font>'; {
$bg = " bgcolor=$bg"; list($fg, $bg) = pctcolour($pct);
$bpct = "<font color=$fg>$approx".number_format($pct, 3).'%</font>';
$bg = " bgcolor=$bg";
}
else
{
$bpct = "$approx".number_format($pct, 3).'%';
$bg = '';
}
$blktot += $diffacc; $blktot += $diffacc;
if ($conf != 'O' and $conf != 'R') if ($conf != 'O' and $conf != 'R')
$nettot += $netdiff; $nettot += $netdiff;

Loading…
Cancel
Save