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";
|
||||
}
|
||||
if ($listElem[7] ==="") {
|
||||
return $mode;
|
||||
return "<span class=\"label label-danger\">".$mode."</span>";
|
||||
} else {
|
||||
$now = new DateTime();
|
||||
$hangtime = getConfigItem("General", "ModeHang", $mmdvmconfigs);
|
||||
|
@ -377,7 +377,7 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
|
|||
if ($now->format('U') > $timestamp->format('U')) {
|
||||
return "idle";
|
||||
} else {
|
||||
return $mode;
|
||||
return "<span class=\"label label-warning\">".$mode."</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
define("VERSION", "20161020-1");
|
||||
define("VERSION", "20161021-1");
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue