From: Nicolas Boisselier Date: Mon, 18 Mar 2019 04:55:11 +0000 (+0000) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=3534cb10ad947255ad841b8366d4b03879dd0622;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 8659bb32..25cc97cd 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -750,7 +750,8 @@ Class Table extends nb { $num_start = $tot ? ($x+1) : 0; $num_end = $tot<($x+$y) ? $tot : ($x+$y); # NB 01.10.18 $html .= ''.$page.' / '.$pages.''; - $html .= ''.$num_start.' - '.$num_end.' / '.$tot.$page.''; +# NB 18.03.19 $html .= ''."$num_start - $num_end / $tot ($page)"; + $html .= ''."$page / $pages | $tot"; if ($next<$tot) { $html .= '>'; diff --git a/lib/postgres/host.sql b/lib/postgres/host.sql index 65e5323f..dbb2285e 100644 --- a/lib/postgres/host.sql +++ b/lib/postgres/host.sql @@ -3,6 +3,7 @@ CREATE VIEW host AS SELECT host ,LEFT(CAST(MAX(updated) AS TEXT),19) as updated ,count(*) as infos + ,array_to_string(array_agg(DISTINCT CASE WHEN key LIKE 'git.%.name' THEN val ELSE null END),' ') as installed ,array_to_string(array_agg(DISTINCT CASE WHEN key LIKE 'git.%.branch' THEN val ELSE null END),' ') as branches FROM host_info GROUP BY host