2013-10-01 20:42:20 +00:00
|
|
|
<div class="loading" ng-show="loading">
|
2013-10-03 16:27:39 +00:00
|
|
|
<i class="icon-spinner icon-spin icon-3x"></i>
|
2013-10-01 20:42:20 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container" ng-show="!loading && (!repo || !permissions)">
|
2013-09-27 19:26:16 +00:00
|
|
|
No repository found
|
|
|
|
</div>
|
|
|
|
|
2013-10-01 20:42:20 +00:00
|
|
|
<div class="container repo repo-admin" ng-show="!loading && repo && permissions">
|
2013-09-27 19:26:16 +00:00
|
|
|
<div class="header">
|
2013-10-10 23:06:04 +00:00
|
|
|
<a href="{{ '/repository/' + repo.namespace + '/' + repo.name }}" class="back"><i class="icon-chevron-left"></i></a>
|
2013-09-27 19:26:16 +00:00
|
|
|
<h3>
|
|
|
|
<i class="icon-hdd icon-large"></i> <span style="color: #aaa;"> {{repo.namespace}}</span> <span style="color: #ccc">/</span> {{repo.name}}
|
|
|
|
</h3>
|
|
|
|
</div>
|
2013-09-28 21:11:10 +00:00
|
|
|
|
|
|
|
<!-- User Access Permissions -->
|
2013-09-27 19:26:16 +00:00
|
|
|
<div class="panel panel-default">
|
2013-09-28 21:11:10 +00:00
|
|
|
<div class="panel-heading">User Access Permissions</div>
|
2013-09-27 19:26:16 +00:00
|
|
|
<div class="panel-body">
|
2013-10-01 20:42:20 +00:00
|
|
|
|
2013-10-01 23:36:57 +00:00
|
|
|
<table class="permissions">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>User</td>
|
|
|
|
<td>Permissions</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tr ng-repeat="(username, permission) in permissions">
|
|
|
|
<td class="user">
|
|
|
|
<i class="icon-user"></i>
|
|
|
|
<span>{{username}}</span>
|
|
|
|
</td>
|
|
|
|
<td class="user-permissions">
|
|
|
|
<div class="btn-group btn-group-sm">
|
|
|
|
<button type="button" class="btn btn-default" ng-click="setRole(username, 'read')" ng-class="{read: 'active', write: '', admin: ''}[permission.role]">Read only</button>
|
|
|
|
<button type="button" class="btn btn-default" ng-click="setRole(username, 'write')" ng-class="{read: '', write: 'active', admin: ''}[permission.role]">Write</button>
|
|
|
|
<button type="button" class="btn btn-default" ng-click="setRole(username, 'admin')" ng-class="{read: '', write: '', admin: 'active'}[permission.role]">Admin</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span class="delete-ui" tabindex="0" title="Delete Permission">
|
|
|
|
<span class="delete-ui-button" ng-click="deleteRole(username)"><button class="btn btn-danger">Delete</button></span>
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-09-28 05:23:00 +00:00
|
|
|
|
2013-10-01 23:36:57 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<input id="userSearch" class="form-control" placeholder="Add new user...">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2013-09-27 19:26:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-28 21:11:10 +00:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<!-- Public/Private -->
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">Repository Settings</div>
|
|
|
|
<div class="panel-body">
|
2013-10-01 23:36:57 +00:00
|
|
|
<div class="repo-access-state" ng-show="!repo.is_public">
|
|
|
|
<div class="state-icon"><i class="icon-lock"></i></div>
|
|
|
|
|
|
|
|
This repository is currently <b>private</b>. Only users on the above access list may view and interact with it.
|
2013-09-28 21:11:10 +00:00
|
|
|
|
2013-10-01 23:36:57 +00:00
|
|
|
<div class="change-access">
|
|
|
|
<button class="btn btn-danger" ng-click="askChangeAccess('public')">Make Public</button>
|
|
|
|
</div>
|
2013-09-28 21:11:10 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="repo-access-state" ng-show="repo.is_public">
|
2013-10-01 23:36:57 +00:00
|
|
|
<div class="state-icon"><i class="icon-unlock-alt"></i></div>
|
2013-09-28 21:11:10 +00:00
|
|
|
|
2013-10-01 23:36:57 +00:00
|
|
|
This repository is currently <b>public</b> and is visible to all users, and may be pulled by all users.
|
2013-09-28 21:11:10 +00:00
|
|
|
|
2013-10-01 23:36:57 +00:00
|
|
|
<div class="change-access">
|
|
|
|
<button class="btn btn-danger" ng-click="askChangeAccess('private')">Make Private</button>
|
|
|
|
</div>
|
2013-09-28 21:11:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-01 18:14:30 +00:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<!-- Delete Repo -->
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">Delete Repository</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="repo-delete">
|
2013-10-01 23:36:57 +00:00
|
|
|
<div class="alert alert-danger">Deleting a repository <b>cannot be undone</b>. Here be dragons!</div>
|
|
|
|
<button class="btn btn-danger" ng-click="askDelete()">Delete Repository</button>
|
2013-10-01 18:14:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-27 19:26:16 +00:00
|
|
|
|
2013-09-27 19:48:54 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="cannotchangeModal">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2013-10-01 18:14:30 +00:00
|
|
|
<h4 class="modal-title">Cannot change</h4>
|
2013-09-27 19:48:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2013-10-01 18:14:30 +00:00
|
|
|
The selected action could not be performed because you do not have that authority.
|
2013-09-27 19:48:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
|
2013-09-28 21:11:10 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="makepublicModal">
|
|
|
|
<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">Make Repository Public</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="alert alert-warning">
|
2013-10-01 23:36:57 +00:00
|
|
|
Warning: This will allow <b>anyone</b> to pull from this repository
|
|
|
|
</div>
|
|
|
|
Are you sure you want to make this repository public?
|
2013-09-28 21:11:10 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-danger" ng-click="changeAccess('public')">Make Public</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="makeprivateModal">
|
|
|
|
<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">Make Repository Private</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="alert alert-warning">
|
2013-10-01 23:36:57 +00:00
|
|
|
Warning: Only users on the permissions list will be able to access this repository.
|
|
|
|
</div>
|
|
|
|
Are you sure you want to make this repository private?
|
2013-09-28 21:11:10 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-success" ng-click="changeAccess('private')">Make Private</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
|
2013-09-27 19:48:54 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="onlyadminModal">
|
|
|
|
<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">Cannot change permissions</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
The selected permissions could not be changed because the user is the only <b>admin</b> on the repo.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
|
|
|
|
2013-10-01 18:14:30 +00:00
|
|
|
<!-- Modal message dialog -->
|
|
|
|
<div class="modal fade" id="confirmdeleteModal">
|
|
|
|
<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">Delete Repository?</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
Are you <b>absolutely, positively</b> sure you would like to delete this repository? This <b>cannot be undone</b>.
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-danger" ng-click="deleteRepo()">Delete Repository</button>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|
|
|
|
|
2013-09-27 00:34:58 +00:00
|
|
|
</div>
|