Change status controller and template

This commit is contained in:
manzerbredes 2016-01-31 13:34:43 +01:00
parent 81696200b0
commit 6905bacd58
3 changed files with 4 additions and 4 deletions

View file

@ -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);