diff --git a/pool/page_blocks.php b/pool/page_blocks.php
index 7d2a25a3..8e860ef2 100644
--- a/pool/page_blocks.php
+++ b/pool/page_blocks.php
@@ -42,7 +42,7 @@ function doblocks($data, $user)
{
$blink = 'Blocks';
+ $pg = '';
if ($user === null)
$ans = getBlocks('Anon');
@@ -56,6 +56,25 @@ function doblocks($data, $user)
if ($wantcsv === false)
{
+ if ($ans['STATUS'] == 'ok')
+ {
+ $count = $ans['rows'];
+ if ($count == 1)
+ {
+ $num = '';
+ $s = '';
+ }
+ else
+ {
+ $num = " $count";
+ $s = 's';
+ }
+
+ $pg = "Last$num Block$s
";
+ }
+ else
+ $pg = 'Blocks
';
+
$pg .= "
# | "; @@ -80,7 +99,7 @@ function doblocks($data, $user) $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { - $seq = $count - $i; + $seq = $i + 1; if (($i % 2) == 0) $row = 'even'; else