mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
added launched by to details on adhoc page
This commit is contained in:
parent
b45ea4f1f4
commit
a9fca9756c
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user