mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
sysutils/smart: Don't color WHEN_FAILED column header (#3333)
This commit is contained in:
parent
e5891e968f
commit
79c485c337
2 changed files with 4 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= smart
|
||||
PLUGIN_VERSION= 2.2
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= SMART tools
|
||||
PLUGIN_DEPENDS= smartmontools
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@
|
|||
// Highlights the words "PASSED", "FAILED", and "WARNING".
|
||||
function add_colors(text) {
|
||||
return text
|
||||
.replace(/PASSED/g, '<span class="text-success">{{ lang._('PASSED') }}</span>')
|
||||
.replace(/FAILED/g, '<span class="text-danger">{{ lang._('FAILED') }}</span>')
|
||||
.replace(/WARNING/g, '<span class="text-warning">{{ lang._('WARNING') }}</span>');
|
||||
.replace(/\bPASSED\b/g, '<span class="text-success">{{ lang._('PASSED') }}</span>')
|
||||
.replace(/\bFAILED\b/g, '<span class="text-danger">{{ lang._('FAILED') }}</span>')
|
||||
.replace(/\bWARNING\b/g, '<span class="text-warning">{{ lang._('WARNING') }}</span>');
|
||||
};
|
||||
|
||||
// Appends options to select device.
|
||||
|
|
|
|||
Loading…
Reference in a new issue