This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge djmitche/build-relengapi:bootstrap (PR #162)
- Loading branch information
Showing
40 changed files
with
9,736 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
<!-- This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | ||
<div ng-app='auth' ng-controller='AuthController'> | ||
<h1>Account</h1> | ||
<p ng-show="initial_data.user.authenticated_email"> | ||
You are authenticated as <span class="user_email">{{ initial_data.user.authenticated_email }}</span>. | ||
</p> | ||
<p ng-hide="initial_data.user.authenticated_email"> | ||
You are not authenticated. | ||
</p> | ||
<h1>Permissions</h1> | ||
<div ng-show="initial_data.user.permissions"> | ||
<ul> | ||
<li ng-repeat="perm in initial_data.user.permissions"> | ||
<span class="permission">{{perm.name}}</span> - <span class="action-docstring">{{perm.doc}}</span></li> | ||
</ul> | ||
<div ng-app='auth' ng-controller='AuthController' class="row"> | ||
<div class="col-xs-12 col-md-5"> | ||
<h1>Account</h1> | ||
<p ng-show="initial_data.user.authenticated_email"> | ||
You are authenticated as <span class="user_email">{{ initial_data.user.authenticated_email }}</span>. | ||
</p> | ||
<p ng-hide="initial_data.user.authenticated_email"> | ||
You are not authenticated. | ||
</p> | ||
</div> | ||
<div ng-hide="initial_data.user.permissions"> | ||
<p>You don't have permission to do anything. Sorry about that.</p> | ||
<div class="col-xs-12 col-md-7"> | ||
<h1>Permissions</h1> | ||
<p>You have the following permissions:</p> | ||
<div ng-show="initial_data.user.permissions"> | ||
<ul> | ||
<li ng-repeat="perm in initial_data.user.permissions"> | ||
<span class="permission">{{perm.name}}</span> - <span class="action-docstring">{{perm.doc}}</span></li> | ||
</ul> | ||
</div> | ||
<div ng-hide="initial_data.user.permissions"> | ||
<p>You don't have permission to do anything. Sorry about that.</p> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<span ng-class="{ | ||
'text-success': status == 'good', | ||
'text-danger': status == 'bad', | ||
'text-muted': status == 'gray' | ||
}"> | ||
<span class="glyphicon" ng-class="{ | ||
'glyphicon-minus-sign': status == 'bad', | ||
'glyphicon-ok-sign': status == 'good', | ||
'glyphicon-question-sign': status == 'gray' | ||
}"></span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
relengapi/blueprints/tokenauth/static/permissionSelector.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<table class="table table-condensed table-hover"> | ||
<thead> | ||
<tr> | ||
<th>Permission</th> | ||
<th>Meaning</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="perm in available_permissions|orderBy:'name'" | ||
ng-class="{'success': permissions.indexOf(perm.name) != -1}" | ||
ng-click="togglePermission(perm)"> | ||
</td><td> | ||
<perm>{{perm.name}}</perm> | ||
</td><td> | ||
<small>{{perm.doc}}</small> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
Oops, something went wrong.