summaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-01-31 13:34:43 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-01-31 13:34:43 +0100
commit6905bacd589950f2f84900fe7b501591bc8c4f68 (patch)
treee3bb47b37555ad4e2d38c7310e4c97ee75d38e88 /client/js
parent81696200b029cecf4060b1021c5eb5c690654b66 (diff)
Change status controller and template
Diffstat (limited to 'client/js')
-rw-r--r--client/js/controllers/status.js4
-rw-r--r--client/js/requests/identity.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/client/js/controllers/status.js b/client/js/controllers/status.js
index 01fdcc3..e4f119d 100644
--- a/client/js/controllers/status.js
+++ b/client/js/controllers/status.js
@@ -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);
diff --git a/client/js/requests/identity.js b/client/js/requests/identity.js
index 369ce85..d008abf 100644
--- a/client/js/requests/identity.js
+++ b/client/js/requests/identity.js
@@ -10,6 +10,6 @@ identity.fetchStatus = function(){
// TODO
- return new Array("1", "user1", "25/02/2016");
+ return new Array("0", "user1", "25/02/2016");
} \ No newline at end of file