Show active mode with colored labels: red = actual active with signal, yellow = in hang-time, no signal

This commit is contained in:
dg9vh 2016-10-21 14:47:36 +00:00
parent d98a3c65e1
commit e2def5883d
2 changed files with 3 additions and 3 deletions

View file

@ -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>";
}
}
}

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20161020-1");
define("VERSION", "20161021-1");
?>