summaryrefslogtreecommitdiff
path: root/client/js/controllers/status.js
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-02-05 19:35:38 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-02-05 19:35:38 +0100
commitcca5df968e3598b07ee81c1f7f2680f5b9120ec3 (patch)
tree4c8d236f4a49b4daab91ced8b78f5c407e7a8f39 /client/js/controllers/status.js
parenta16df328c05b3ac005a3c05237a069786b8d5d6f (diff)
Add sharedProfile service
Diffstat (limited to 'client/js/controllers/status.js')
-rw-r--r--client/js/controllers/status.js24
1 files changed, 5 insertions, 19 deletions
diff --git a/client/js/controllers/status.js b/client/js/controllers/status.js
index 42a54d4..4ffdb6b 100644
--- a/client/js/controllers/status.js
+++ b/client/js/controllers/status.js
@@ -4,25 +4,11 @@
-mainApp.controller('statusCtrl', function ($scope,$interval,$sce)
-{
- $scope.username="John Doe";
- $scope.projectname="Web Server";
- // Update status every 2 seconds
- /*$interval(function(){
- var status=identity.fetchStatus();
- $scope.username=status[1];
- $scope.lastconnection=status[2];
- if(status[0] == "1"){
- $scope.connection=$sce.trustAsHtml("<span style=\"color:green;\">Online</span>");
- }
- else{
- $scope.connection=$sce.trustAsHtml("<span style=\"color:red;\">Offline</span>");
- }
- }, 2000);*/
-
+mainApp.controller('statusCtrl', ['$scope','sharedProfile', function ($scope, sharedProfile)
+{
+ $scope.profile=sharedProfile;
+
-
-}); \ No newline at end of file
+}]); \ No newline at end of file