diff --git a/awx/ui/client/legacy-styles/ansible-ui.less b/awx/ui/client/legacy-styles/ansible-ui.less index 09527af6dc..3c3fb6fd3a 100644 --- a/awx/ui/client/legacy-styles/ansible-ui.less +++ b/awx/ui/client/legacy-styles/ansible-ui.less @@ -2030,3 +2030,25 @@ tr td button i { margin-bottom: 15px; } } + +.DownloadStandardOut { + color: #fff !important; +} + +.DownloadStandardOut--onStandardOutPage { + margin-top: -3px; + margin-right: -9px; + float: right; +} + +.DownloadStandardOut--onModal { + margin-bottom: 10px; +} + +.DownloadStandardOut-icon { + color: #fff; +} + +.DownloadStandardOut-icon--withText { + margin-right: 5px; +} diff --git a/awx/ui/client/src/helpers/LogViewer.js b/awx/ui/client/src/helpers/LogViewer.js index 41aee6384d..ecc07531a3 100644 --- a/awx/ui/client/src/helpers/LogViewer.js +++ b/awx/ui/client/src/helpers/LogViewer.js @@ -98,7 +98,9 @@ export default $('#logview-tabs li:eq(1)').show(); AddPreFormattedText({ id: 'stdout-form-container', - val: data.result_stdout + val: data.result_stdout, + standardOut: true, + jobUrl: data.url }); } @@ -360,8 +362,11 @@ export default return function(params) { var id = params.id, val = params.val, - html; - html = "
" + val + "\n"; + html = ""; + if (params.standardOut) { + html += 'Download'; + } + html += "
" + val + "\n"; $('#' + id).empty().html(html); }; }]) diff --git a/awx/ui/client/src/partials/job_stdout.html b/awx/ui/client/src/partials/job_stdout.html index 27fe31db5e..a02a9d8888 100644 --- a/awx/ui/client/src/partials/job_stdout.html +++ b/awx/ui/client/src/partials/job_stdout.html @@ -21,7 +21,8 @@