82 lines
No EOL
3.4 KiB
HTML
82 lines
No EOL
3.4 KiB
HTML
<div class="repository-permissions-table-element">
|
|
<div class="resource-view"
|
|
resources="[permissionResources.team, permissionResources.user]"
|
|
error-message="'Could not load repository permissions'">
|
|
<table class="co-table permissions">
|
|
<thead>
|
|
<tr>
|
|
<td>Account Name</td>
|
|
<td style="width: 300px">Permissions</td>
|
|
<td class="options-col"></td>
|
|
</tr>
|
|
</thead>
|
|
|
|
<!-- Team Permissions -->
|
|
<tr ng-repeat="(name, permission) in permissionResources.team.value">
|
|
<td class="team entity">
|
|
<span class="entity-reference" namespace="repository.namespace"
|
|
entity="buildEntityForPermission(name, permission, 'team')">
|
|
</span>
|
|
</td>
|
|
<td class="user-permissions">
|
|
<span class="role-group" current-role="permission.role" role-changed="setRole(role, name, 'team')" roles="roles"></span>
|
|
</td>
|
|
|
|
<td class="options-col">
|
|
<span class="cor-options-menu">
|
|
<span class="cor-option" option-click="deleteRole(name, 'team')">
|
|
<i class="fa fa-times"></i> Delete Permission
|
|
</span>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- User Permissions -->
|
|
<tr ng-repeat="(name, permission) in permissionResources.user.value">
|
|
<td class="{{ 'user entity ' + (permission.is_org_member ? '' : 'outside') }}">
|
|
<span class="entity-reference" namespace="repository.namespace"
|
|
entity="buildEntityForPermission(name, permission, 'user')">
|
|
</span>
|
|
</td>
|
|
<td class="user-permissions">
|
|
<div class="btn-group btn-group-sm">
|
|
<span class="role-group" current-role="permission.role" role-changed="setRole(role, name, 'user')" roles="roles"></span>
|
|
</div>
|
|
</td>
|
|
<td class="options-col">
|
|
<span class="cor-options-menu">
|
|
<span class="cor-option" option-click="deleteRole(name, 'user')">
|
|
<i class="fa fa-times"></i> Delete Permission
|
|
</span>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class="add-row">
|
|
<td id="add-entity-permission" class="admin-search">
|
|
<span class="entity-search" namespace="repository.namespace"
|
|
placeholder="'Select a ' + (repository.is_organization ? 'team or ' : '') + 'user...'"
|
|
current-entity="addPermissionInfo.entity"></span>
|
|
</td>
|
|
<td colspan="2">
|
|
<span class="role-group" current-role="addPermissionInfo.role" roles="roles"
|
|
role-changed="addPermissionInfo.role = role"></span>
|
|
<button class="btn btn-success" style="margin-left: 10px"
|
|
ng-disabled="!addPermissionInfo.role || !addPermissionInfo.entity"
|
|
ng-click="addPermission()">
|
|
Add Permission
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Grant Permission Confirm -->
|
|
<div class="cor-confirm-dialog"
|
|
dialog-context="grantPermissionInfo"
|
|
dialog-action="grantPermission(info.entity, callback)"
|
|
dialog-title="Grant Permission"
|
|
dialog-action-title="Grant Permission">
|
|
The selected user is outside of your organization. Are you sure you want to grant the user access to this repository?
|
|
</div>
|
|
</div> |