From 87fe5f70ad63550f5b5cb6645ae5ab1b4e025c9c Mon Sep 17 00:00:00 2001 From: Anton Markelov Date: Tue, 14 Nov 2017 15:33:02 +1000 Subject: [PATCH] add link to JSON task output --- public/html/projects/taskModal.pug | 3 +++ public/js/controllers/projects/dashboard.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/html/projects/taskModal.pug b/public/html/projects/taskModal.pug index 0536ac59..416aa9b0 100644 --- a/public/html/projects/taskModal.pug +++ b/public/html/projects/taskModal.pug @@ -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") diff --git a/public/js/controllers/projects/dashboard.js b/public/js/controllers/projects/dashboard.js index eb8702cb..f1f0e3de 100644 --- a/public/js/controllers/projects/dashboard.js +++ b/public/js/controllers/projects/dashboard.js @@ -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'); }); });