add link to JSON task output

This commit is contained in:
Anton Markelov 2017-11-14 15:33:02 +10:00
parent f48c7fa8c2
commit 87fe5f70ad
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@
dd {{ task.endFormatted }} dd {{ task.endFormatted }}
dt Created dt Created
dd {{ task.createdFormatted }} dd {{ task.createdFormatted }}
dt Permalink
dd
a(href="{{ task.URL }}") Output
dt Raw output dt Raw output
dd: input(type="checkbox" ng-model="raw" title="show logs unbesmirched") dd: input(type="checkbox" ng-model="raw" title="show logs unbesmirched")

View File

@ -44,7 +44,7 @@ define(['controllers/projects/taskRunner'], function() {
if (!t.start || !t.end) { if (!t.start || !t.end) {
return; return;
} }
t.URL = '/api' + $scope.project.getURL() + '/tasks/' + t.id + '/output'
t.duration = moment(t.end).diff(moment(t.start), 'minutes'); t.duration = moment(t.end).diff(moment(t.start), 'minutes');
}); });
}); });