mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
Merge pull request #5105 from mabashian/4956-template-details-links
Link to project and inventory from job template details Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -174,13 +174,27 @@ class JobTemplateDetail extends Component {
|
||||
{summary_fields.inventory && (
|
||||
<Detail
|
||||
label={i18n._(t`Inventory`)}
|
||||
value={summary_fields.inventory.name}
|
||||
value={
|
||||
<Link
|
||||
to={`/inventories/${
|
||||
summary_fields.inventory.kind === 'smart'
|
||||
? 'smart_inventory'
|
||||
: 'inventory'
|
||||
}/${summary_fields.inventory.id}/details`}
|
||||
>
|
||||
{summary_fields.inventory.name}
|
||||
</Link>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{summary_fields.project && (
|
||||
<Detail
|
||||
label={i18n._(t`Project`)}
|
||||
value={summary_fields.project.name}
|
||||
value={
|
||||
<Link to={`/projects/${summary_fields.project.id}/details`}>
|
||||
{summary_fields.project.name}
|
||||
</Link>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
<Detail label={i18n._(t`Playbook`)} value={playbook} />
|
||||
|
||||
Reference in New Issue
Block a user