Added network credential to the job details summary

This commit is contained in:
Michael Abashian 2016-06-27 16:17:06 -04:00
parent 1b8693f666
commit ae8e15fbb3
2 changed files with 15 additions and 0 deletions

View File

@ -579,6 +579,14 @@ export default
scope.cloud_credential_name = "";
}
if (data.summary_fields.cloud_credential) {
scope.network_credential_name = data.summary_fields.network_credential.name;
scope.network_credential_url = data.related.network_credential
.replace('api/v1', '#');
} else {
scope.network_credential_name = "";
}
for (i=0; i < verbosity_options.length; i++) {
if (verbosity_options[i].value === data.verbosity) {
scope.verbosity = verbosity_options[i].label;

View File

@ -127,6 +127,13 @@
</div>
</div>
<div class="form-group JobDetail-resultRow toggle-show" ng-show="network_credential_name">
<label class="JobDetail-resultRowLabel col-lg-2 col-md-2 col-sm-2 col-xs-3 control-label">Network Credential</label>
<div class="JobDetail-resultRowText">
<a href="{{ network_credential_url }}" aw-tool-tip="Edit the credential" data-placement="top">{{ network_credential_name }}</a>
</div>
</div>
<div class="form-group JobDetail-resultRow toggle-show" ng-show="job.forks">
<label class="JobDetail-resultRowLabel col-lg-2 col-md-2 col-sm-2 col-xs-3 control-label">Forks</label>
<div class="JobDetail-resultRowText">{{ job.forks }}</div>