diff --git a/awx/ui/client/features/jobs/_index.less b/awx/ui/client/features/jobs/_index.less index 15acc8c90f..020ee3f46e 100644 --- a/awx/ui/client/features/jobs/_index.less +++ b/awx/ui/client/features/jobs/_index.less @@ -2,6 +2,7 @@ font-family: monospace; &-controls { + color: @at-gray-dark-4x; border: 1px solid @at-gray-dark-2x; border-top-left-radius: 4px; border-top-right-radius: 4px; @@ -9,29 +10,34 @@ } &-controlIcon { - font-size: 16px; + font-size: 12px; padding: 10px; } &-expand { - background-color: @at-gray-light-2x; + color: @at-gray-dark-4x; + background-color: @at-gray-light; + font-size: 12px; - padding: 0 10px; + padding: 0 20px 0 10px; } &-lineNumber { - background-color: @at-gray-light-2x; + color: @at-gray-dark-4x; + background-color: @at-gray-light; padding-right: 5px; - border-right: 1px solid gray; + border-right: 1px solid @at-gray-dark; } &-content { - padding-left: 5px; + padding-left: 20px; } &-timestamp { padding-left: 20px; + font-size: 12px; + text-align: right; } &-output { diff --git a/awx/ui/client/features/output/index.controller.js b/awx/ui/client/features/output/index.controller.js index 01db5efeca..fa61c0df6c 100644 --- a/awx/ui/client/features/output/index.controller.js +++ b/awx/ui/client/features/output/index.controller.js @@ -55,6 +55,7 @@ function parseLine (event) { const { stdout } = event; const lines = stdout.split('\r\n'); + const isTruncated = (event.end_line - event.start_line) > lines.length; let ln = event.start_line; @@ -63,17 +64,32 @@ function parseLine (event) { const time = getTime(event, i); const group = getGroup(event, i); + const isLastLine = i === lines.length - 1; + + if (isTruncated && isLastLine) { + return `${html}${createRow(ln, line, time, group)}${createTruncatedRow()}`; + } return `${html}${createRow(ln, line, time, group)}`; }, ''); } +function createTruncatedRow () { + return ` +
-
| + | + | + | |
|---|---|---|---|
| + | + | + | Back to Top | +