From a535a3904dad7333ea77213af591bc2bf1aeaba3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 7 Dec 2017 17:07:15 +0100 Subject: [locations] Redesign machine count column, make both counts clickable --- modules-available/locations/page.inc.php | 1 + .../locations/templates/locations.html | 23 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'modules-available/locations') diff --git a/modules-available/locations/page.inc.php b/modules-available/locations/page.inc.php index 511757fe..0cfa5b90 100644 --- a/modules-available/locations/page.inc.php +++ b/modules-available/locations/page.inc.php @@ -377,6 +377,7 @@ class Page_Locations extends Page unset($loc); foreach ($locs as $loc) { foreach ($loc['parents'] as $pid) { + $locs[(int)$pid]['hasChild'] = true; $locs[(int)$pid]['clientCountSum'] += $loc['clientCount']; } } diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index 02428323..be3d5115 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -41,12 +41,12 @@ {{^linkClass}} {{#havestatistics}} - {{clientCount}} - - / - {{clientCountSum}} +  {{clientCount}}  + + {{#hasChild}} + (↓{{clientCountSum}}) + {{/hasChild}} - {{/havestatistics}} {{/linkClass}} @@ -87,9 +87,8 @@ {{lang_unassignedMachines}} - {{unassignedCount}} - - + +  {{unassignedCount}}  @@ -103,16 +102,16 @@
- +
- +
-- cgit v1.2.3-55-g7522