Show active mode with colored labels: red = actual active with signal, yellow = in hang-time, no signal
This commit is contained in:
parent
d98a3c65e1
commit
e2def5883d
2 changed files with 3 additions and 3 deletions
|
@ -358,7 +358,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
|
||||||
$mode = "DMR";
|
$mode = "DMR";
|
||||||
}
|
}
|
||||||
if ($listElem[7] ==="") {
|
if ($listElem[7] ==="") {
|
||||||
return $mode;
|
return "<span class=\"label label-danger\">".$mode."</span>";
|
||||||
} else {
|
} else {
|
||||||
$now = new DateTime();
|
$now = new DateTime();
|
||||||
$hangtime = getConfigItem("General", "ModeHang", $mmdvmconfigs);
|
$hangtime = getConfigItem("General", "ModeHang", $mmdvmconfigs);
|
||||||
|
@ -377,7 +377,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
|
||||||
if ($now->format('U') > $timestamp->format('U')) {
|
if ($now->format('U') > $timestamp->format('U')) {
|
||||||
return "idle";
|
return "idle";
|
||||||
} else {
|
} else {
|
||||||
return $mode;
|
return "<span class=\"label label-warning\">".$mode."</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20161020-1");
|
define("VERSION", "20161021-1");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue