2014-01-21 19:18:20 +00:00
< div class = "prototype-manager-element" >
2015-07-14 09:39:49 +00:00
< div class = "feedback-bar" feedback = "feedback" > < / div >
2015-04-01 18:41:41 +00:00
< div class = "cor-loader" ng-show = "loading" > < / div >
< div ng-show = "!loading" >
2015-04-20 18:00:10 +00:00
< div class = "manager-header" header-title = "Default Permissions" >
< button class = "btn btn-primary" ng-click = "showAddDialog()" >
< i class = "fa fa-plus" > < / i >
Create Default Permission
< / button >
2014-01-21 19:18:20 +00:00
< / div >
2014-11-24 21:07:38 +00:00
2015-04-20 18:00:10 +00:00
< div class = "section-description-header" >
2015-04-01 18:41:41 +00:00
The Default permissions panel defines permissions that should be granted automatically to a repository when it is created, in addition to the default of the repository's
creator. Permissions are assigned based on the user who created the repository.
< br > < br >
< strong > Note:< / strong > Permissions added here do < strong > not< / strong > automatically get added to
existing repositories.
2014-01-21 19:18:20 +00:00
< / div >
2015-04-09 20:25:10 +00:00
< div class = "empty" ng-if = "!prototypes.length" >
< div class = "empty-primary-msg" > No default permissions defined.< / div >
< div class = "empty-secondary-msg" >
Click the "Create Default Permission" button above to create a new default permission.
< / div >
< / div >
2015-04-20 18:00:10 +00:00
< table class = "cor-table" ng-show = "prototypes.length" >
2014-01-21 19:18:20 +00:00
< thead >
2015-04-01 18:41:41 +00:00
< td >
2014-01-21 23:34:54 +00:00
< span class = "context-tooltip"
2014-11-24 21:07:38 +00:00
data-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."
2015-04-01 18:41:41 +00:00
data-container="body" bs-tooltip>
Repository Created By
2014-01-21 19:18:20 +00:00
< / span >
2015-04-01 18:41:41 +00:00
< / td >
< td >
< span class = "context-tooltip"
data-title="The user, robot or team that is being granted the permission"
data-container="body" bs-tooltip>
Permission Applied To
2014-01-21 19:18:20 +00:00
< / span >
2015-04-01 18:41:41 +00:00
< / td >
< td > Permission< / td >
< td class = "options-col" > < / td >
2014-01-21 19:18:20 +00:00
< / thead >
2014-11-24 21:07:38 +00:00
2014-01-21 23:34:54 +00:00
< tr ng-repeat = "prototype in prototypes | orderBy:comparePrototypes" >
2014-11-24 21:07:38 +00:00
< td >
2014-01-21 23:34:54 +00:00
< span class = "entity-reference block-reference" entity = "prototype.activating_user"
2015-04-01 18:41:41 +00:00
namespace="organization.name" ng-if="prototype.activating_user"
avatar-size="24">< / span >
2014-01-21 23:34:54 +00:00
2015-04-01 18:41:41 +00:00
< span ng-show = "!prototype.activating_user"
style="font-variant: small-caps; font-weight: bold; font-size: 16px;">
2014-01-21 23:34:54 +00:00
(Organization Default)
< / span >
2014-01-21 19:18:20 +00:00
< / td >
< td >
2015-04-01 18:41:41 +00:00
< span class = "entity-reference block-reference" entity = "prototype.delegate" namespace = "organization.name" avatar-size = "24" > < / span >
2014-01-21 19:18:20 +00:00
< / td >
< td >
2015-04-20 21:42:33 +00:00
< span class = "role-group" current-role = "prototype.role"
role-changed="setRole(role, prototype)"
roles="repoRoles">< / span >
2014-01-21 19:18:20 +00:00
< / td >
2015-04-01 18:41:41 +00:00
< td class = "options-col" >
< span class = "cor-options-menu" >
< span class = "cor-option" option-click = "deletePrototype(prototype)" >
< i class = "fa fa-times" > < / i > Delete Permission
< / span >
< / span >
2014-01-21 19:18:20 +00:00
< / td >
< / tr >
< / table >
< / div >
2014-01-21 20:09:47 +00:00
<!-- Modal message dialog -->
< div class = "modal fade" id = "addPermissionDialogModal" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-hidden = "true" > × < / button >
< h4 class = "modal-title" > Create Default Permission< / h4 >
< / div >
< div class = "modal-body" >
2014-01-21 23:34:54 +00:00
< 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 >
2014-11-24 21:07:38 +00:00
< / td >
2014-01-21 23:34:54 +00:00
< / tr >
< / table >
< / div >
2014-01-21 20:09:47 +00:00
< table >
2014-01-21 23:34:54 +00:00
< tr ng-show = "!newForWholeOrg" >
2014-01-21 23:48:41 +00:00
< td > Repository Creator:< / td >
2014-01-21 20:09:47 +00:00
< td >
2014-07-18 17:45:08 +00:00
< span class = "entity-search" namespace = "organization.name"
placeholder="'User/Robot'"
allowed-entities="['user', 'robot']"
current-entity="activatingForNew"
clear-value="clearCounter">
2014-01-21 20:09:47 +00:00
< / span >
< / td >
< / tr >
< tr >
2014-01-21 23:48:41 +00:00
< td > Permission:< / td >
2014-01-21 20:09:47 +00:00
< td >
2015-04-20 21:42:33 +00:00
< span class = "role-group" current-role = "newRole" role-changed = "setRoleForNew(role)"
roles="repoRoles">< / span >
2014-01-21 20:09:47 +00:00
< / td >
< / tr >
< tr >
2014-01-21 23:48:41 +00:00
< td > Applied To:< / td >
2014-01-21 20:09:47 +00:00
< td >
2014-07-18 17:45:08 +00:00
< span class = "entity-search" namespace = "organization.name" placeholder = "'User/Robot/Team'"
current-entity="delegateForNew"
clear-value="clearCounter">
2014-01-21 23:48:41 +00:00
< / span >
2014-01-21 20:09:47 +00:00
< / td >
< / tr >
< / table >
< / div >
2014-11-24 21:07:38 +00:00
< div class = "modal-footer" >
2014-01-21 23:34:54 +00:00
< button ype = "button" class = "btn btn-primary" ng-disabled = "!(newForWholeOrg || activatingForNew) || !delegateForNew" ng-click = "createPrototype()" >
2014-01-21 20:09:47 +00:00
Create Permission
< / button >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Close< / button >
< / div >
< / div > <!-- /.modal - content -->
< / div > <!-- /.modal - dialog -->
< / div > <!-- /.modal -->
2014-01-21 19:18:20 +00:00
< / div >