This commit is contained in:
Matan Bar Yosef 2015-08-03 23:51:52 +03:00
parent 5c725a2555
commit 01b6a76d30
4 changed files with 13 additions and 2 deletions

View file

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

View file

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

View file

@ -70,6 +70,7 @@
<div>
{{msg.group.courseName}}
{{msg.group.projectName}}
{{getDate(msg)}}
</div>
</div>
<div flex = "40">
@ -83,8 +84,9 @@
<md-content class="md-padding">
<div ng-repeat = "course in unSubmittedTasks">
<md-card ng-repeat = "task in course.tasks" layout-padding>
Title: {{task.title}}
<br/>{{(task.isPersonal) ? "A personal task": "A project task"}}
<div ng-repeat = "uName in task.usersToReview">
Title: {{task.title}}
<br></br>
<md-button ng-click="reviewTask(task.id, uName.id)">
Name: {{uName.name}}
@ -167,6 +169,7 @@
<div>
{{msg.group.courseName}}
{{msg.group.projectName}}
{{getDate(msg)}}
</div>
</div>
<div flex = "40">

View file

@ -119,6 +119,7 @@
<div>
{{msg.group.courseName}}
{{msg.group.projectName}}
{{getDate(msg)}}
</div>
</div>
<div flex = "40">