From 7ae63acf1704203c7821a431f3625b58e804d093 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Wed, 8 Feb 2017 18:37:09 -0500 Subject: [PATCH] Added Template link to workflow job --- .../workflow-results.controller.js | 5 +++++ .../workflow-results.partial.html | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/awx/ui/client/src/workflow-results/workflow-results.controller.js b/awx/ui/client/src/workflow-results/workflow-results.controller.js index be6a67c0ca..93bfbbf718 100644 --- a/awx/ui/client/src/workflow-results/workflow-results.controller.js +++ b/awx/ui/client/src/workflow-results/workflow-results.controller.js @@ -88,6 +88,11 @@ export default ['workflowData', runTimeElapsedTimer = workflowResultsService.createOneSecondTimer($scope.workflow.started, updateWorkflowJobElapsedTimer); } + if(workflowData.summary_fields && workflowData.summary_fields.workflow_job_template && + workflowData.summary_fields.workflow_job_template.id){ + $scope.workflow_job_template_link = `/#/templates/workflow_job_template/${$scope.workflow.summary_fields.workflow_job_template.id}`; + } + // stdout full screen toggle tooltip text $scope.toggleStdoutFullscreenTooltip = i18n._("Expand Output"); diff --git a/awx/ui/client/src/workflow-results/workflow-results.partial.html b/awx/ui/client/src/workflow-results/workflow-results.partial.html index 5d0bbf87f9..b73c1f609c 100644 --- a/awx/ui/client/src/workflow-results/workflow-results.partial.html +++ b/awx/ui/client/src/workflow-results/workflow-results.partial.html @@ -98,6 +98,21 @@ + +
+ + +
+