From a17763e823b5df842860728268fba92e3aafed73 Mon Sep 17 00:00:00 2001 From: Morgoth Date: Thu, 9 Jul 2026 14:51:15 +0700 Subject: [PATCH] Show host description in Tiles and Time view --- monitor_render.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monitor_render.php b/monitor_render.php index e07063f..a94105c 100644 --- a/monitor_render.php +++ b/monitor_render.php @@ -1196,15 +1196,16 @@ function renderHostTilesadt(array $host): string { $class = getStatusIcon($host['status'], $host['monitor_icon']); $fclass = get_request_var('size'); + $name = title_trim(html_escape($host['description']), 40); if ($host['status'] < 2 || $host['status'] == 5) { $tis = get_timeinstate($host); - return "

$tis
"; + return "

$name
$tis
"; } else { $tis = get_uptime($host); - return "

$tis
"; + return "

$name
$tis
"; } }