1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

added launched by to details on adhoc page

This commit is contained in:
John Mitchell 2015-06-23 15:14:46 -04:00
parent b45ea4f1f4
commit a9fca9756c
2 changed files with 14 additions and 0 deletions

View File

@ -165,6 +165,7 @@ export function JobStdoutController ($location, $log, $rootScope, $scope, $compi
.success(function(data) {
$scope.job = data;
$scope.job_template_name = data.name;
$scope.created_by = data.summary_fields.created_by;
$scope.project_name = (data.summary_fields.project) ? data.summary_fields.project.name : '';
$scope.inventory_name = (data.summary_fields.inventory) ? data.summary_fields.inventory.name : '';
$scope.job_template_url = '/#/job_templates/' + data.unified_job_template;

View File

@ -101,6 +101,19 @@
</div>
</div>
<div class="form-group StandardOutDetails-detailRow
StandardOutDetails-detailRow--closable"
ng-show="created_by">
<label class="col-lg-2 col-md-2 col-sm-2 col-xs-12
StandardOutDetails-detailContent">Launched By</label>
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-9
StandardOutDetails-detailContent">
<a href="/#/users/{{ created_by.id }}"
aw-tool-tip="See the user who ran this command"
data-placement="top">{{ created_by.username }}</a>
</div>
</div>
<!-- since zero is a falsy value, you need ng-show such that
the number is >= 0 -->
<div class="form-group StandardOutDetails-detailRow