mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Shorten descriptions with interface names in
This commit is contained in:
@@ -57,7 +57,7 @@ if (count($sensors)) {
|
||||
$sensor['sensor_descr'] = truncate($sensor['sensor_descr'], 48, '');
|
||||
|
||||
echo '<tr>
|
||||
<td><strong>'.overlib_link($link, $sensor['sensor_descr'], $overlib_content).'</strong></td>
|
||||
<td><strong>'.overlib_link($link, shorten_interface_type($sensor['sensor_descr']), $overlib_content).'</strong></td>
|
||||
<td>'.overlib_link($link, $sensor_minigraph, $overlib_content).'</td>
|
||||
<td>'.overlib_link($link, '<span '.($sensor['sensor_current'] < $sensor['sensor_limit_low'] || $sensor['sensor_current'] > $sensor['sensor_limit'] ? "style='color: red'" : '').'>'.$sensor['sensor_current'].$sensor_unit.'</span>', $overlib_content).'</td>
|
||||
</tr>';
|
||||
|
Reference in New Issue
Block a user