This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/directives/prototype-manager.html

60 lines
2.4 KiB
HTML
Raw Normal View History

<div class="prototype-manager-element">
<div class="quay-spinner" ng-show="loading"></div>
<div class="container" ng-show="!loading">
<div class="alert alert-info">
Default permissions provide a means of specifying <span class="context-tooltip" title="By default, all repositories have the creating user added as an 'Admin'" bs-tooltip="tooltip.title">additional</span> permissions that should be granted automatically to a repository based on the user or robot creating the repository.
</div>
<div class="side-controls">
<button class="btn btn-success">
<i class="fa fa-plus"></i>
New Default Permission
</button>
</div>
<table class="table">
<thead>
<th>
<span class="context-tooltip" title="The user that is creating the repository"
bs-tooltip="tooltip.title" data-container="body">
Creating User/Robot
</span>
</th>
<th>
<span class="context-tooltip" title="The user or team that is being granted the permission"
bs-tooltip="tooltip.title" data-container="body">
Delegated User/Team
</span>
</th>
<th>Permission</th>
<th style="width: 150px"></th>
</thead>
<tr ng-repeat="prototype in prototypes">
<td>
<span class="entity-reference" orgname="organization.name" name="prototype.activating_user.name"
isrobot="prototype.activating_user.is_robot"></span>
</td>
<td>
<span class="entity-reference" orgname="organization.name"
name="prototype.delegate.kind == 'team' ? null :prototype.delegate.name"
team="prototype.delegate.kind == 'team' ? prototype.delegate.name : null"
isrobot="prototype.delegate.is_robot"></span>
</td>
<td>
<span class="role-group" current-role="prototype.role" role-changed="setRole(role, prototype)" roles="roles"></span>
</td>
<td>
<span class="delete-ui" tabindex="0">
<span class="delete-ui-button" ng-click="deletePrototype(prototype)"><button class="btn btn-danger">Delete</button></span>
<i class="fa fa-times" bs-tooltip="tooltip.title" data-placement="right" title="Delete Permission"></i>
</span>
</td>
</tr>
</table>
</div>
</div>