mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Improve device header layout (#5990)
* webui: Improve device header layout * Update css style version to break caches Remove unused css.
This commit is contained in:
committed by
Neil Lathwood
parent
097a827759
commit
20ae9e2ecd
@@ -224,12 +224,18 @@ function getLogo($device)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $device
|
||||
* @param array $device
|
||||
* @param string $class to apply to the image tag
|
||||
* @return string an image tag with the logo for this device. Images are often wide, not square.
|
||||
*/
|
||||
function getLogoTag($device)
|
||||
function getLogoTag($device, $class = null)
|
||||
{
|
||||
return '<img src="' . getLogo($device) . '" title="' . getImageTitle($device) . '"/>';
|
||||
$tag = '<img src="' . getLogo($device) . '" title="' . getImageTitle($device) . '"';
|
||||
if (isset($class)) {
|
||||
$tag .= " class=\"$class\" ";
|
||||
}
|
||||
$tag .= ' />';
|
||||
return $tag;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user