Change status controller and template
This commit is contained in:
parent
81696200b0
commit
6905bacd58
3 changed files with 4 additions and 4 deletions
|
@ -13,10 +13,10 @@ mainApp.controller('statusCtrl', function ($scope,$interval,$sce)
|
|||
$scope.username=status[1];
|
||||
$scope.lastconnection=status[2];
|
||||
if(status[0] == "1"){
|
||||
$scope.connection=$sce.trustAsHtml("Connection : <span style=\"color:green;\">Online</span>");
|
||||
$scope.connection=$sce.trustAsHtml("<span style=\"color:green;\">Online</span>");
|
||||
}
|
||||
else{
|
||||
$scope.connection="Connection : <span style=\"color:red;\">Offline</span>";
|
||||
$scope.connection=$sce.trustAsHtml("<span style=\"color:red;\">Offline</span>");
|
||||
}
|
||||
}, 2000);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue