Add support for org-wide default permissions
This commit is contained in:
parent
e1e283698e
commit
3da5a77e33
4 changed files with 56 additions and 13 deletions
|
@ -16,9 +16,10 @@
|
|||
<table class="table">
|
||||
<thead>
|
||||
<th>
|
||||
<span class="context-tooltip" title="The user that is creating the repository"
|
||||
<span class="context-tooltip"
|
||||
title="The user or robot that is creating a repository. If '(Organization Default)', then any repository created in this organization will be granted the permission."
|
||||
bs-tooltip="tooltip.title" data-container="body">
|
||||
Creating User/Robot
|
||||
Repository Creator
|
||||
</span>
|
||||
</th>
|
||||
<th>
|
||||
|
@ -31,9 +32,14 @@
|
|||
<th style="width: 150px"></th>
|
||||
</thead>
|
||||
|
||||
<tr ng-repeat="prototype in prototypes">
|
||||
<td>
|
||||
<span class="entity-reference block-reference" entity="prototype.activating_user" namespace="organization.name"></span>
|
||||
<tr ng-repeat="prototype in prototypes | orderBy:comparePrototypes">
|
||||
<td>
|
||||
<span class="entity-reference block-reference" entity="prototype.activating_user"
|
||||
namespace="organization.name" ng-show="prototype.activating_user"></span>
|
||||
|
||||
<span ng-show="!prototype.activating_user" style="font-variant: small-caps; font-weight: bold; font-size: 16px;">
|
||||
(Organization Default)
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="entity-reference block-reference" entity="prototype.delegate" namespace="organization.name"></span>
|
||||
|
@ -60,8 +66,24 @@
|
|||
<h4 class="modal-title">Create Default Permission</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="super-option">
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td>Applies when a repository is created by:</td>
|
||||
<td>
|
||||
<div class="btn-group btn-group-sm">
|
||||
<button type="button" class="btn btn-default"
|
||||
ng-class="newForWholeOrg ? 'active btn-info' : ''" ng-click="setNewForWholeOrg(true)">Anyone</button>
|
||||
<button type="button" class="btn btn-default"
|
||||
ng-class="newForWholeOrg ? '' : 'active btn-info'" ng-click="setNewForWholeOrg(false)">A specific user</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<tr ng-show="!newForWholeOrg">
|
||||
<td>Creating User/Robot:</td>
|
||||
<td>
|
||||
<span class="entity-search" namespace="organization.name" input-title="'Creating User/Robot'"
|
||||
|
@ -88,7 +110,7 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button ype="button" class="btn btn-primary" ng-disabled="!activatingForNew || !delegateForNew" ng-click="createPrototype()">
|
||||
<button ype="button" class="btn btn-primary" ng-disabled="!(newForWholeOrg || activatingForNew) || !delegateForNew" ng-click="createPrototype()">
|
||||
Create Permission
|
||||
</button>
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
|
|
Reference in a new issue