Skip to content

Commit

Permalink
Added Task Created column
Browse files Browse the repository at this point in the history
  • Loading branch information
noah committed Jul 30, 2018
1 parent 95ab674 commit 61fb389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orchestra/static/orchestra/dashboard/tasktable.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h3>
class="table table-striped">
<thead>
<tr>
<th st-sort="start_datetime">Task Created</th>
<th st-sort="project">Project</th>
<th st-sort="step">Task</th>
<th st-sort="detail">Details</th>
Expand All @@ -57,6 +58,7 @@ <h3>
ng-class="{'task-row':true, 'danger': vm.isInDanger(task)}"
ng-repeat="task in displayedTasks"
ng-click="vm.openTask(task)">
<td><datetime-display datetime="task.start_datetime" show-time="false" /></td>
<td>{{task.project}}</td>
<td>{{task.step}}</td>
<td>{{task.detail|limitTo:50}}{{task.detail.length > 50 ? '...' : ''}}</td>
Expand Down
1 change: 1 addition & 0 deletions orchestra/utils/task_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ def tasks_assigned_to_worker(worker):
'detail': task_assignment.task.project.short_description,
'priority': task_assignment.task.project.priority,
'state': state,
'start_datetime': task_assignment.task.project.start_datetime,
'next_todo_dict': next_todo_dict,
'should_be_active': should_be_active})
return tasks_assigned
Expand Down

0 comments on commit 61fb389

Please sign in to comment.