webui: Updated sensors overview header to be consistent with others (#7761)

* webui: Updated sensors overview header to be consistent with others

* added line break
This commit is contained in:
Neil Lathwood
2017-11-18 10:26:12 +00:00
committed by GitHub
parent 03cba5b24d
commit 38be66993f

View File

@ -97,7 +97,7 @@ if (count($sensors)) {
$sensor['sensor_descr'] = substr($sensor['sensor_descr'], 0, 48);
}
$overlib_content = '<div style="width: 580px;"><h2>'.$device['hostname'].' - '.$sensor['sensor_descr'].'</h1>';
$overlib_content = '<div class=overlib><span class=overlib-text>' . $device['hostname'] . ' - ' . $sensor['sensor_descr'] . '</span><br />';
foreach (array('day', 'week', 'month', 'year') as $period) {
$graph_array['from'] = $config['time'][$period];
$overlib_content .= str_replace('"', "\'", generate_graph_tag($graph_array));