From f0d2a2edb0dc6ad2eeefaef9e3f8e076016fbbd0 Mon Sep 17 00:00:00 2001 From: Fabian Franz BSc Date: Mon, 5 Nov 2018 19:23:43 +0100 Subject: [PATCH] sysutils/smart: fix coloring for themes; "s/\t/ /g"; cleanup php (#957) --- sysutils/smart/Makefile | 2 +- .../widgets/widgets/smart_status.widget.php | 76 +++++++++---------- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/sysutils/smart/Makefile b/sysutils/smart/Makefile index ce845881b..b1a0dec69 100644 --- a/sysutils/smart/Makefile +++ b/sysutils/smart/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= smart -PLUGIN_VERSION= 1.4 +PLUGIN_VERSION= 1.5 PLUGIN_COMMENT= SMART tools PLUGIN_DEPENDS= smartmontools PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/sysutils/smart/src/www/widgets/widgets/smart_status.widget.php b/sysutils/smart/src/www/widgets/widgets/smart_status.widget.php index 9c3345ae8..b51bba5c8 100644 --- a/sysutils/smart/src/www/widgets/widgets/smart_status.widget.php +++ b/sysutils/smart/src/www/widgets/widgets/smart_status.widget.php @@ -1,31 +1,31 @@ - - - - - + + + + + 0) { case "PASSED": case "OK": $dev_state_translated = gettext('OK'); - $color = "#90EE90"; + $color = "success"; break; case "": $dev_state = "Unknown"; $dev_state_translated = gettext('Unknown'); - $color = "#C0B788"; + $color = "warning"; break; default: - $color = "#F08080"; + $color = "danger"; break; } ?> - - - - - + + + + +