summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/locationinfo/inc/infopanel.inc.php3
-rw-r--r--modules-available/locationinfo/page.inc.php3
-rw-r--r--modules-available/locationinfo/templates/frontend-summary.html6
3 files changed, 9 insertions, 3 deletions
diff --git a/modules-available/locationinfo/inc/infopanel.inc.php b/modules-available/locationinfo/inc/infopanel.inc.php
index 918030f0..fdc253f0 100644
--- a/modules-available/locationinfo/inc/infopanel.inc.php
+++ b/modules-available/locationinfo/inc/infopanel.inc.php
@@ -37,6 +37,9 @@ class InfoPanel
$overrides = $json['overrides'];
}
unset($json['overrides']);
+ if (!isset($json['roomplanner'])) {
+ $config['roomplanner'] = false;
+ }
$config = $json + $config;
}
}
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index 13382438..8ea18940 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -902,6 +902,9 @@ class Page_LocationInfo extends Page
}
$config = json_decode($panel['panelconfig'], true);
+ if (!isset($config['roomplanner'])) {
+ $config['roomplanner'] = false;
+ }
}
// Permission
diff --git a/modules-available/locationinfo/templates/frontend-summary.html b/modules-available/locationinfo/templates/frontend-summary.html
index ecb41467..95299e63 100644
--- a/modules-available/locationinfo/templates/frontend-summary.html
+++ b/modules-available/locationinfo/templates/frontend-summary.html
@@ -82,7 +82,8 @@
}
.pc-offline {
- background-color: darkgrey;
+ background-color: black;
+ color: white;
}
.pc-standby {
@@ -91,8 +92,7 @@
.pc-broken {
- background-color: black;
- color: white;
+ background-color: darkgrey;
border-radius: 0px 3px 3px 0px;
}