mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
AC-232 put the RC back in the output/results section. Changed label on output/results to Results. Added nowrap class to allow horizontal scrolling in textareas
This commit is contained in:
@@ -24,6 +24,10 @@
|
|||||||
border-color: #e3e3e3;
|
border-color: #e3e3e3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nowrap {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
/* Attempt to make button heights consistent. For some reason success, info, etc. are
|
/* Attempt to make button heights consistent. For some reason success, info, etc. are
|
||||||
taller than plain .btn */
|
taller than plain .btn */
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function JobEventsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
|||||||
rows = (rows > 10) ? 10 : rows;
|
rows = (rows > 10) ? 10 : rows;
|
||||||
found = true;
|
found = true;
|
||||||
html += "<label>Traceback:</label>\n";
|
html += "<label>Traceback:</label>\n";
|
||||||
html += "<textarea readonly class=\"input-xxlarge\" rows=\"" + rows + "\">" + eventData.res + "</textarea>\n";
|
html += "<textarea readonly class=\"input-xxlarge nowrap\" rows=\"" + rows + "\">" + eventData.res + "</textarea>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (var fld in eventData.res) {
|
for (var fld in eventData.res) {
|
||||||
@@ -64,7 +64,7 @@ function JobEventsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
|||||||
n = eventData['res'][fld].match(/\n/g);
|
n = eventData['res'][fld].match(/\n/g);
|
||||||
rows = (n) ? n.length : 1;
|
rows = (n) ? n.length : 1;
|
||||||
rows = (rows > 10) ? 10 : rows;
|
rows = (rows > 10) ? 10 : rows;
|
||||||
html += "<textarea readonly class=\"input-xxlarge\" rows=\"" + rows + "\">" + eventData.res[fld] + "</textarea>\n";
|
html += "<textarea readonly class=\"input-xxlarge nowrap\" rows=\"" + rows + "\">" + eventData.res[fld] + "</textarea>\n";
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
if ( fld == "results" && Array.isArray(eventData.res[fld]) && eventData.res[fld].length > 0 ) {
|
if ( fld == "results" && Array.isArray(eventData.res[fld]) && eventData.res[fld].length > 0 ) {
|
||||||
@@ -78,7 +78,7 @@ function JobEventsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
|
|||||||
rows = (rows > 10) ? 10 : rows;
|
rows = (rows > 10) ? 10 : rows;
|
||||||
if (txt !== '') {
|
if (txt !== '') {
|
||||||
html += "<label>Results:</label>\n";
|
html += "<label>Results:</label>\n";
|
||||||
html += "<textarea readonly class=\"input-xxlarge\" rows=\"" + rows + "\">" + txt + "</textarea>\n";
|
html += "<textarea readonly class=\"input-xxlarge nowrap\" rows=\"" + rows + "\">" + txt + "</textarea>\n";
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ angular.module('JobEventDataDefinition', [])
|
|||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
rows: 18,
|
rows: 18,
|
||||||
'class': 'modal-input-xxxlarge'
|
'class': 'modal-input-xxxlarge nowrap'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefini
|
|||||||
label: 'Return Code',
|
label: 'Return Code',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
section: 'Event',
|
section: 'Results',
|
||||||
'class': 'span1',
|
'class': 'span1',
|
||||||
ngShow: "rc !== ''"
|
ngShow: "rc !== ''"
|
||||||
},
|
},
|
||||||
@@ -79,8 +79,8 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefini
|
|||||||
label: false,
|
label: false,
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
section: 'Output',
|
section: 'Results',
|
||||||
'class': 'modal-input-xxlarge',
|
'class': 'modal-input-xxlarge nowrap',
|
||||||
ngShow: "msg !== ''",
|
ngShow: "msg !== ''",
|
||||||
rows: 10
|
rows: 10
|
||||||
},
|
},
|
||||||
@@ -88,8 +88,8 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefini
|
|||||||
label: false,
|
label: false,
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
section: 'Output',
|
section: 'Results',
|
||||||
'class': 'modal-input-xxlarge',
|
'class': 'modal-input-xxlarge nowrap',
|
||||||
ngShow: "stdout !== ''",
|
ngShow: "stdout !== ''",
|
||||||
rows: 10
|
rows: 10
|
||||||
},
|
},
|
||||||
@@ -97,8 +97,8 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefini
|
|||||||
label: false,
|
label: false,
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
section: 'Output',
|
section: 'Results',
|
||||||
'class': 'modal-input-xxlarge',
|
'class': 'modal-input-xxlarge nowrap',
|
||||||
ngShow: "stderr !== ''",
|
ngShow: "stderr !== ''",
|
||||||
rows: 10
|
rows: 10
|
||||||
},
|
},
|
||||||
@@ -106,7 +106,7 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefini
|
|||||||
label: false,
|
label: false,
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
'class': 'modal-input-xxlarge',
|
'class': 'modal-input-xxlarge nowrap',
|
||||||
ngShow: "results !== ''",
|
ngShow: "results !== ''",
|
||||||
rows: 10
|
rows: 10
|
||||||
},
|
},
|
||||||
@@ -122,7 +122,7 @@ angular.module('EventsHelper', ['RestServices', 'Utilities', 'JobEventDataDefini
|
|||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
section: 'Traceback',
|
section: 'Traceback',
|
||||||
'class': 'modal-input-xxlarge',
|
'class': 'modal-input-xxlarge nowrap',
|
||||||
ngShow: "traceback !== ''",
|
ngShow: "traceback !== ''",
|
||||||
rows: 10
|
rows: 10
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user