mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
Handle the three different owner types (organization, user, team) with separate links
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
<div ng-repeat="owner in owners_list">
|
<div ng-repeat="owner in owners_list">
|
||||||
<a ui-sref="organizations.edit({ organization_id: owner.id })">{{ owner.name }}{{$last ? '' : ', '}}</a>
|
<a ng-if="owner.type === 'organization'" ui-sref="organizations.edit({ organization_id: owner.id })">{{ owner.name }}{{$last ? '' : ', '}}</a>
|
||||||
|
<a ng-if="owner.type === 'user'" ui-sref="users.edit({ user_id: owner.id })">{{ owner.name }}{{$last ? '' : ', '}}</a>
|
||||||
|
<a ng-if="owner.type === 'team'" ui-sref="teams.edit({ team_id: owner.id })">{{ owner.name }}{{$last ? '' : ', '}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user