mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
display inventory on workflow job details
This commit is contained in:
@@ -32,6 +32,14 @@ export default ['workflowData', 'workflowResultsService', 'workflowDataOptions',
|
|||||||
$scope.cloud_credential_link = getLink('cloud_credential');
|
$scope.cloud_credential_link = getLink('cloud_credential');
|
||||||
$scope.network_credential_link = getLink('network_credential');
|
$scope.network_credential_link = getLink('network_credential');
|
||||||
|
|
||||||
|
if ($scope.workflow.summary_fields.inventory) {
|
||||||
|
if ($scope.workflow.summary_fields.inventory.kind === 'smart') {
|
||||||
|
$scope.inventory_link = '/#/inventories/smart/' + $scope.workflow.inventory;
|
||||||
|
} else {
|
||||||
|
$scope.inventory_link = '/#/inventories/inventory/' + $scope.workflow.inventory;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.strings = {
|
$scope.strings = {
|
||||||
tooltips: {
|
tooltips: {
|
||||||
RELAUNCH: i18n._('Relaunch using the same parameters'),
|
RELAUNCH: i18n._('Relaunch using the same parameters'),
|
||||||
@@ -54,7 +62,8 @@ export default ['workflowData', 'workflowResultsService', 'workflowDataOptions',
|
|||||||
STATUS: i18n._('Status'),
|
STATUS: i18n._('Status'),
|
||||||
SLICE_TEMPLATE: i18n._('Slice Job Template'),
|
SLICE_TEMPLATE: i18n._('Slice Job Template'),
|
||||||
JOB_EXPLANATION: i18n._('Explanation'),
|
JOB_EXPLANATION: i18n._('Explanation'),
|
||||||
SOURCE_WORKFLOW_JOB: i18n._('Source Workflow')
|
SOURCE_WORKFLOW_JOB: i18n._('Source Workflow'),
|
||||||
|
INVENTORY: i18n._('Inventory')
|
||||||
},
|
},
|
||||||
details: {
|
details: {
|
||||||
HEADER: i18n._('DETAILS'),
|
HEADER: i18n._('DETAILS'),
|
||||||
|
|||||||
@@ -125,6 +125,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- INVENTORY DETAIL -->
|
||||||
|
<div class="WorkflowResults-resultRow"
|
||||||
|
ng-show="workflow.summary_fields.inventory">
|
||||||
|
<label class="WorkflowResults-resultRowLabel">
|
||||||
|
{{ strings.labels.INVENTORY }}
|
||||||
|
</label>
|
||||||
|
<div class="WorkflowResults-resultRowText">
|
||||||
|
<a href="{{ inventory_link }}"
|
||||||
|
aw-tool-tip="{{ strings.tooltips.EDIT_WORKFLOW }}"
|
||||||
|
data-placement="top">
|
||||||
|
{{ workflow.summary_fields.inventory.name }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- TEMPLATE DETAIL -->
|
<!-- TEMPLATE DETAIL -->
|
||||||
<div class="WorkflowResults-resultRow"
|
<div class="WorkflowResults-resultRow"
|
||||||
ng-show="workflow.summary_fields.workflow_job_template.name">
|
ng-show="workflow.summary_fields.workflow_job_template.name">
|
||||||
|
|||||||
Reference in New Issue
Block a user