blob: 4303c8c8897ec3c9c8496d75c350032f6ee45a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{% extends "index_page.html" %}
{%from "oauth2/profile_nav.html" import profile_nav%}
{%block title%}View User{%endblock%}
{%block content%}
<div class="container" style="min-width: 1250px;">
{{profile_nav("roles", user_privileges)}}
<h3>Role: {{role.role_name}}</h3>
{{flash_me()}}
<div class="container-fluid">
<div class="row">
<div class="panel panel-info">
<div class="panel-heading">
<strong>{{role.role_name}}</strong>
</div>
<div class="panel-body">
<table class="table">
<thead>
<tr><th>privilege id</th><th>description</th></tr>
</thead>
<tbody>
{%for privilege in role.privileges:%}
<tr>
<td>{{privilege.privilege_id}}</td>
<td>{{privilege.privilege_description}}</td>
</tr>
{%else%}
<tr>
<td>
<span class="glyphicon glyphicon-warning-sign text-warning"></span>
</td>
<td>
<span class="text-warning">No privileges found for this role.</span>
</td>
</tr>
{%endfor%}
</tbody>
</table>
</div>
<div class="panel-footer">
<p>
This role acts on the resource with ID:
<a href="{{url_for('oauth2.resource.view_resource', resource_id=resource_id)}}">
{{resource_id}}
</a>
</p>
</div>
</div>
</div>
</div>
</div>
{%endblock%}
|