diff --git a/templates/js/controllers/homeController.js b/templates/js/controllers/homeController.js index 032a7d1..a3eb34b 100644 --- a/templates/js/controllers/homeController.js +++ b/templates/js/controllers/homeController.js @@ -176,6 +176,9 @@ angular.module('SeHub') console.log($scope.courseObj); } + $scope.getDate = function(msg){ + return msg.date.day.toString() + "-" + msg.date.month.toString() +"-"+ msg.date.year.toString() + " " + msg.date.hour.toString() +":"+msg.date.minute.toString(); + } $scope.chooseProjectClicked = function() diff --git a/templates/js/controllers/projectController.js b/templates/js/controllers/projectController.js index b1cf373..c108005 100644 --- a/templates/js/controllers/projectController.js +++ b/templates/js/controllers/projectController.js @@ -24,6 +24,10 @@ angular.module('SeHub') console.log($scope.user.id) // console.log($scope.projectid) + $scope.getDate = function(msg){ + return msg.date.day.toString() + "-" + msg.date.month.toString() +"-"+ msg.date.year.toString() + " " + msg.date.hour.toString() +":"+msg.date.minute.toString(); + } + $scope.displayProjectMessages = function() { apiService.getAllUserMessages(token).success(function(data) diff --git a/templates/views/home.html b/templates/views/home.html index 2532034..0751011 100644 --- a/templates/views/home.html +++ b/templates/views/home.html @@ -70,6 +70,7 @@
{{msg.group.courseName}} {{msg.group.projectName}} + {{getDate(msg)}}
@@ -83,8 +84,9 @@
-
- Title: {{task.title}} + Title: {{task.title}} +
{{(task.isPersonal) ? "A personal task": "A project task"}} +


Name: {{uName.name}} @@ -158,7 +160,7 @@
- +
@@ -167,6 +169,7 @@
{{msg.group.courseName}} {{msg.group.projectName}} + {{getDate(msg)}}
diff --git a/templates/views/project.html b/templates/views/project.html index 1736c1c..87ec96b 100644 --- a/templates/views/project.html +++ b/templates/views/project.html @@ -119,6 +119,7 @@
{{msg.group.courseName}} {{msg.group.projectName}} + {{getDate(msg)}}