mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
Job detail page
Added support for the garbled playbook: https://trello.com/c/UA2oIdhd/284-needs-to-be-a-better-indication-when-a-play-is-failed-due-to-syntax-issue-without-events
This commit is contained in:
parent
8f7d2fd78b
commit
adbe2d182f
@ -435,6 +435,12 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
||||
scope.activePlay = data.results[0].id;
|
||||
}
|
||||
scope.selectedPlay = scope.activePlay;
|
||||
} else {
|
||||
// if we are here, there are no plays and the job has failed, let the user know they may want to consult stdout
|
||||
if (scope.job_status.status === 'failed' || scope.job_status.status === 'error' &&
|
||||
(!scope.job_status.explanation)) {
|
||||
scope.job_status.explanation = "<a href=\"/#/jobs/" + scope.job_id + "/stdout\" target=\"_blank\">View stdout for more detail</a>";
|
||||
}
|
||||
}
|
||||
data.results.forEach(function(event, idx) {
|
||||
var status, status_text, start, end, elapsed, ok, changed, failed, skipped;
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-lg-2 col-md-2 col-sm-2 col-xs-3 control-label">Status</label>
|
||||
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-4"><i class="fa icon-job-{{ job_status.status }}"></i> {{ job_status.status }}</div>
|
||||
<div class="col-lg-8 col-md-7 col-sm-6 col-xs-5">{{ job_status.explanation }}</div>
|
||||
<div class="col-lg-8 col-md-7 col-sm-6 col-xs-5" ng-bind-html="job_status.explanation"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user