When one submits a device description for a device and is viewed in the device details page the output does not honor and carriage returns that was inputed.
E.g in input of devices description
ISP:ORANGE
SERVICEID:11112222
BANDWIDTH:100
Output on device details page
Description ISP:ORANGE SERVICEID:11112222 BANDWIDTH:100
It should display as follows:
Description ISP:ORANGE
SERVICEID:11112222
BANDWIDTH:100
does it support html (at least a limited set)?
need to edit styles.css in folder /opt/librenms/html/css/custom
take a backup of styles.css
edit styles.css and add below line at end of file
.device-overview .panel-body .row .col-sm-8 {
white-space: pre-wrap !important;
}
Don’t edit that file, just add a custom css file.
original file in /html/css is intact
made a copy of it in /html/css/custom folder then edited
set to custom css with below lnms command
lnms config:set webui.custom_css.+ “css/custom/styles.css”
i believe there is confusion as i used same file name in custom folder also
hope this method is ok, as we are not editing in original /html/css/styles.css
@RR1 you don’t need to copy custom styles don’t remove the built in ones… just add the bit you want to add.
well noted.
so the only changes are ,
create a custom.css file in /html/css/custom folder
the only setting in custom.css file is like below
.device-overview .panel-body .row .col-sm-8 {
white-space: pre-wrap !important;
}
then
set the custom.css file using lnms command
lnms config:set webui.custom_css.+ “css/custom/custom.css”