128 lines
3.7 KiB
HTML
128 lines
3.7 KiB
HTML
<!--
|
|
Copyright 2014 The MITRE Corporation
|
|
and the MIT Kerberos and Internet Trust Consortium
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<!-- approved sites (grants) -->
|
|
|
|
<script type="text/html" id="tmpl-grant-table">
|
|
|
|
<div class="well well-small">
|
|
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
|
</div>
|
|
|
|
<div class="tabbable">
|
|
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a data-target="#grant-approved-tab" data-toggle="tab" href="#">Approved Sites <span class="label label-info" id="approvde-site-count">?</span></a></li>
|
|
<li><a data-target="#grant-whitelist-tab" data-toggle="tab" href="#">Whitelisted Sites <span class="label label-info" id="whitelist-count">?</span></a></li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="grant-approved-tab">
|
|
|
|
<p>These are sites you have approved manually. If the same site asks for the same access in the future, it will
|
|
be granted without prompting.</p>
|
|
|
|
<div id="grant-table-empty" class="alert alert-info">
|
|
You have not approved any sites.
|
|
</div>
|
|
|
|
<table id="grant-table" class="table table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Application</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="grant-whitelist-tab">
|
|
|
|
<p>These are sites that have been pre-approved by an administrator.</p>
|
|
<p class="text-warning"><b>NOTE:</b> If you revoke them here, they will automatically be re-approved on your next visit wthout prompting.</p>
|
|
|
|
<div id="grant-whitelist-table-empty" class="alert alert-info">
|
|
You have not accessed any whitelisted sites.
|
|
</div>
|
|
|
|
<table id="grant-whitelist-table" class="table table-hover table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Application</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="well well-small">
|
|
<button class="btn btn-small refresh-table"><i class="icon-refresh"></i> Refresh</button>
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-grant">
|
|
<td>
|
|
<% if (client.dynamicallyRegistered) { %>
|
|
<span class="label label-inverse dynamically-registered"><i class="icon-globe icon-white"></i></span>
|
|
<% } %>
|
|
<span class="label label-info tokens"><%= grant.approvedAccessTokens.length %></span>
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span title="<%= client.clientId %>"><%= client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
|
|
<div class="client-more-info-block"></div>
|
|
<div class="scope-list"></div>
|
|
</td>
|
|
|
|
|
|
<td>
|
|
<div>
|
|
<i>Authorized:</i> <span title="<%= formattedDate.hoverCreationDate %>"><%= formattedDate.displayCreationDate %></span>
|
|
</div>
|
|
|
|
<div>
|
|
<i>Last accessed:</i> <span title="<%= formattedDate.hoverAccessDate %>"><%= formattedDate.displayAccessDate %></span>
|
|
</div>
|
|
|
|
<div>
|
|
<i>Expires:</i> <span title="<%= formattedDate.hoverTimeoutDate %>"><%= formattedDate.displayTimeoutDate %></span>
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<button class="btn btn-danger btn-delete pull-right"><i class="icon-trash icon-white"></i> Revoke</button>
|
|
</td>
|
|
|
|
</script>
|
|
|