- finish
This commit is contained in:
parent
5c725a2555
commit
01b6a76d30
4 changed files with 13 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
<div ng-repeat = "uName in task.usersToReview">
|
||||
Title: {{task.title}}
|
||||
<br/>{{(task.isPersonal) ? "A personal task": "A project task"}}
|
||||
<div ng-repeat = "uName in task.usersToReview">
|
||||
<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">
|
||||
|
|
|
@ -119,6 +119,7 @@
|
|||
<div>
|
||||
{{msg.group.courseName}}
|
||||
{{msg.group.projectName}}
|
||||
{{getDate(msg)}}
|
||||
</div>
|
||||
</div>
|
||||
<div flex = "40">
|
||||
|
|
Loading…
Reference in a new issue