summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2019-01-15 14:28:05 +0100
committerSimon Rettberg2019-01-15 14:28:05 +0100
commita08d21462310c03c1902e43988c6159cea5b4965 (patch)
tree8a510907d519ad7c06f9e756f165dfc93d10bdf7 /modules-available
parent[serversetup-bwlp] Update translations (diff)
parent[locationinfo] set roomplanner default on false for existing panels (diff)
downloadslx-admin-a08d21462310c03c1902e43988c6159cea5b4965.tar.gz
slx-admin-a08d21462310c03c1902e43988c6159cea5b4965.tar.xz
slx-admin-a08d21462310c03c1902e43988c6159cea5b4965.zip
Merge branch 'master' into ipxe
Diffstat (limited to 'modules-available')
-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;
}