webui: Update Availability-Map Widget to use sysName when IPs used and config enabled (#4968)

This commit is contained in:
Andreser
2016-11-10 23:30:56 +02:00
committed by Neil Lathwood
parent 84ede20f49
commit b790317178

View File

@@ -294,7 +294,7 @@ if (defined('SHOW_SETTINGS')) {
$serviceLabel .= ' widget-availability-fixed';
}
$temp_output[] = '
<a href="' . generate_url(array('page' => 'device', 'tab' => 'services', 'device' => $service['device_id'])) . '" title="' . $service['hostname'] . " - " . $service['service_type'] . " - " . $service['service_desc'] . '">
<a href="' . generate_url(array('page' => 'device', 'tab' => 'services', 'device' => $service['device_id'])) . '" title="' . shorthost(ip_to_sysname($device, $device['hostname'])) . " - " . $service['service_type'] . " - " . $service['service_desc'] . '">
<span class="label ' . $serviceLabel . ' widget-availability label-font-border">' . $service['service_type'] . ' - ' . $serviceState . '</span>
</a>';
}