From 97f7e56635691dc9a20471530d4fcefe97a68ecd Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 6 Oct 2015 15:31:11 -0400 Subject: [PATCH] add token to href of downloadable standard out --- awx/ui/client/src/helpers/LogViewer.js | 4 ++-- awx/ui/client/src/partials/job_stdout.html | 2 +- awx/ui/client/src/partials/job_stdout_adhoc.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/helpers/LogViewer.js b/awx/ui/client/src/helpers/LogViewer.js index bc2f7e6835..90e9a3f407 100644 --- a/awx/ui/client/src/helpers/LogViewer.js +++ b/awx/ui/client/src/helpers/LogViewer.js @@ -359,13 +359,13 @@ export default }; }]) - .factory('AddPreFormattedText', [function() { + .factory('AddPreFormattedText', ['$rootScope', function($rootScope) { return function(params) { var id = params.id, val = params.val, html = ""; if (params.standardOut) { - html += 'Download'; + html += 'Download'; html += "
" + val + "
\n"; } else { html += "
" + val + "
\n"; diff --git a/awx/ui/client/src/partials/job_stdout.html b/awx/ui/client/src/partials/job_stdout.html index 8c113d908c..9ec92b6706 100644 --- a/awx/ui/client/src/partials/job_stdout.html +++ b/awx/ui/client/src/partials/job_stdout.html @@ -22,7 +22,7 @@

Standard Output - + Download

diff --git a/awx/ui/client/src/partials/job_stdout_adhoc.html b/awx/ui/client/src/partials/job_stdout_adhoc.html index 3dcac4097e..52b51565d7 100644 --- a/awx/ui/client/src/partials/job_stdout_adhoc.html +++ b/awx/ui/client/src/partials/job_stdout_adhoc.html @@ -160,7 +160,7 @@

Standard Output - Download + Download