Chris Houseknecht 2014-08-13 19:16:37 -04:00
parent 8f7d2fd78b
commit adbe2d182f
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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">