Skip to content

Commit

Permalink
add link to JSON task output
Browse files Browse the repository at this point in the history
  • Loading branch information
strangeman committed Nov 14, 2017
1 parent f48c7fa commit 87fe5f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions public/html/projects/taskModal.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
dd {{ task.endFormatted }}
dt Created
dd {{ task.createdFormatted }}
dt Permalink
dd
a(href="{{ task.URL }}") Output
dt Raw output
dd: input(type="checkbox" ng-model="raw" title="show logs unbesmirched")

Expand Down
2 changes: 1 addition & 1 deletion public/js/controllers/projects/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ define(['controllers/projects/taskRunner'], function() {
if (!t.start || !t.end) {
return;
}

t.URL = '/api' + $scope.project.getURL() + '/tasks/' + t.id + '/output'
t.duration = moment(t.end).diff(moment(t.start), 'minutes');
});
});
Expand Down

0 comments on commit 87fe5f7

Please sign in to comment.