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;