blob: aa7529053ed4d61eba4fcad00c38c14956befad3 (
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
57
58
59
60
61
62
63
64
|
{%macro profile_nav(calling_page, user_sys_privileges)%}
<ul class="nav nav-pills">
<li role="presentation"
{%if calling_page == "dashboard"%}
class="active"
{%endif%}>
<a href="{{url_for('oauth2.user.user_profile')}}">Dashboard</a>
</li>
<li role="presentation"
{%if calling_page == "group"%}
class="active"
{%endif%}>
<a href="{{url_for('oauth2.group.user_group')}}">Group</a>
</li>
<li role="presentation"
{%if calling_page == "roles"%}
class="active"
{%endif%}>
<a href="{{url_for('oauth2.role.user_roles')}}">Roles</a>
</li>
<li role="presentation"
{%if calling_page == "resources"%}
class="active"
{%endif%}>
<a href="{{url_for('oauth2.resource.user_resources')}}">Resources</a>
</li>
{%if "system:data:link-to-group" in user_sys_privileges %}
<li role="presentation"
{%if calling_page == "data"%}
class="active"
{%endif%}>
<a href="{{url_for('oauth2.data.list_data')}}">Link Data</a>
</li>
{%endif%}
{%if "system:user:masquerade" in user_sys_privileges %}
<li role="presentation"
{%if calling_page == "masquerade"%}
class="active"
{%endif%}>
<a href="{{url_for('oauth2.user.masquerade')}}"
title="Masquerade as another user">
Masquerade As
</a>
</li>
{%endif%}
<li role="presentation">
{%if logged_in():%}
<a href="{{url_for('oauth2.user.logout')}}">Logout</a>
{%else%}
<a href="{{url_for('oauth2.user.login')}}">Login</a>
{%endif%}
</li>
</ul>
{%endmacro%}
|