41 lines
1.4 KiB
HTML
41 lines
1.4 KiB
HTML
<div class="container" ng-show="!repo || !permissions">
|
|
No repository found
|
|
</div>
|
|
|
|
<div class="container repo repo-admin" ng-show="repo && permissions">
|
|
<div class="header">
|
|
<h3>
|
|
<i class="icon-hdd icon-large"></i> <span style="color: #aaa;"> {{repo.namespace}}</span> <span style="color: #ccc">/</span> {{repo.name}}
|
|
</h3>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Access Permissions</div>
|
|
<div class="panel-body">
|
|
|
|
<table class="permissions">
|
|
<thead>
|
|
<tr>
|
|
<td>User</td>
|
|
<td>Permissions</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>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|