Skip to content

Commit

Permalink
QA: Disable should show correct background
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Feb 5, 2023
1 parent 91ccbcf commit 5300306
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion webseer.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,9 @@ function list_urls() {

if (cacti_sizeof($result)) {
foreach ($result as $row) {
if ($row['result'] == 0 && strtotime($row['lastcheck']) > 0) {
if ($row['enabled'] == '') {
$style = "color:rgba(10,10,10,0.8);background-color:rgba(205, 207, 196, 0.6)";
} elseif ($row['result'] == 0 && strtotime($row['lastcheck']) > 0) {
$style = "color:rgba(10,10,10,0.8);background-color:rgba(242, 25, 36, 0.6);";
} else {
$style = "color:rgba(10,10,10,0.8);background-color:rgba(204, 255, 204, 0.6)";
Expand Down
4 changes: 3 additions & 1 deletion webseer_servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,9 @@ function list_servers() {

if (cacti_sizeof($result)) {
foreach ($result as $row) {
if ($row['isme'] == 0 && $row['lastcheck'] < time() - 10) {
if ($row['enabled'] == '') {
$style = "color:rgba(10,10,10,0.8);background-color:rgba(205, 207, 196, 0.6)";
} elseif ($row['isme'] == 0 && $row['lastcheck'] < time() - 10) {
$style = "color:rgba(10,10,10,0.8);background-color:rgba(242, 25, 36, 0.6);";
} else {
$style = "color:rgba(10,10,10,0.8);background-color:rgba(204, 255, 204, 0.6)";
Expand Down

0 comments on commit 5300306

Please sign in to comment.