1+ < ul class ="nav navbar-nav navbar-right "
2+ style ="padding-right: 60px ">
3+
4+ < li class ="dropdown " uib-dropdown >
5+ < a class ="clickable "
6+ uib-dropdown-toggle >
7+ < span waltz-if-anonymous ="true ">
8+ < waltz-icon name ="user "> </ waltz-icon >
9+ Anonymous
10+ < b class ="caret "> </ b >
11+ </ span >
12+ < span waltz-if-anonymous ="false ">
13+ < waltz-icon name ="user "> </ waltz-icon >
14+ Profile
15+ < b class ="caret "> </ b >
16+ </ span >
17+ </ a >
18+ < ul class ="dropdown-menu "
19+ uib-dropdown-menu
20+ style ="width: 250px; margin-right:8px "
21+ role ="menu "
22+ class ="no-overflow ">
23+
24+ < li style ="margin: 4px "
25+ class ="no-overflow ">
26+ < span waltz-if-anonymous ="false ">
27+ < a ui-sref ="main.profile.view ({userId: ctrl.user.userName}) "
28+ ng-bind ="ctrl.user.userName "> </ a >
29+ </ span >
30+ < span waltz-if-anonymous ="true "> Anonymous</ span >
31+ </ li >
32+ < li style ="margin: 4px "
33+ ng-if ="ctrl.allowDirectLogin "
34+ class ="no-overflow ">
35+ < span waltz-if-anonymous ="true ">
36+ < a class ="clickable "
37+ ng-click ="ctrl.login() ">
38+ < waltz-icon name ="sign-in "> </ waltz-icon >
39+ < span > Login</ span >
40+ </ a >
41+ </ span >
42+ < span waltz-if-anonymous ="false ">
43+ < a class ="clickable "
44+ ng-click ="ctrl.logout() ">
45+ < waltz-icon name ="sign-out "> </ waltz-icon >
46+ Logout
47+ </ a >
48+ </ span >
49+
50+ </ li >
51+
52+ < li class ="divider " waltz-has-role ="ADMIN "> </ li >
53+
54+ < li style ="margin: 4px "
55+ ui-sref-active ="side-active "
56+ class ="no-overflow ">
57+ < span waltz-has-role ="ADMIN ">
58+ < a ui-sref ="main.traits ">
59+ < waltz-icon class ='text-muted small '
60+ fixed-width ="true "
61+ name ="cubes "> </ waltz-icon >
62+ Manage Traits
63+ </ a >
64+ </ span >
65+ </ li >
66+ < li style ="margin: 4px "
67+ ui-sref-active ="side-active "
68+ class ="no-overflow ">
69+ < span waltz-has-role ="ADMIN ">
70+ < a ui-sref ="main.user.management ">
71+ < waltz-icon class ='text-muted small '
72+ fixed-width ="true "
73+ name ="users "> </ waltz-icon >
74+ Manage Users
75+ </ a >
76+ </ span >
77+ </ li >
78+ < li style ="margin: 4px "
79+ ui-sref-active ="side-active "
80+ class ="no-overflow ">
81+ < span waltz-has-role ="APP_EDITOR ">
82+ < a ui-sref ="main.app.registration ">
83+ < waltz-icon class ='text-muted small '
84+ fixed-width ="true "
85+ name ="gift "> </ waltz-icon >
86+ Register App
87+ </ a >
88+ </ span >
89+ </ li >
90+ < li style ="margin: 4px "
91+ ui-sref-active ="side-active "
92+ class ="no-overflow ">
93+ < span waltz-has-role ="ADMIN ">
94+ < a ui-sref ="main.settings ">
95+ < waltz-icon class ='text-muted small '
96+ fixed-width ="true "
97+ name ="cog "> </ waltz-icon >
98+ Settings
99+ </ a >
100+ </ span >
101+ </ li >
102+ < li style ="margin: 4px "
103+ ui-sref-active ="side-active "
104+ class ="no-overflow ">
105+ < span waltz-has-role ="ADMIN ">
106+ < a ui-sref ="main.source-data-ratings ">
107+ < waltz-icon class ='text-muted small '
108+ fixed-width ="true "
109+ name ="map-signs "> </ waltz-icon >
110+ Source Data Ratings
111+ </ a >
112+ </ span >
113+ </ li >
114+ < li style ="margin: 4px "
115+ ui-sref-active ="side-active "
116+ class ="no-overflow ">
117+ < span waltz-has-role ="ADMIN ">
118+ < a ui-sref ="main.user.log ">
119+ < waltz-icon class ='text-muted small '
120+ fixed-width ="true "
121+ name ="list-ul "> </ waltz-icon >
122+ User Logs
123+ </ a >
124+ </ span >
125+ </ li >
126+
127+ </ ul >
128+
129+ < script type ="text/ng-template " id ="navbar/modal-login.html ">
130+ < div class = "modal-header" >
131+ < h3 class = "modal-title" >
132+ Login to Waltz
133+ < small ng-bind = "logoOverlayText" > </ small >
134+ </ h3 >
135+ </ div >
136+
137+ < div class = "modal-body" >
138+ < form >
139+ < label > Username</ label >
140+ < input class = 'form-control input-sm'
141+ ng-model = "username"
142+ autofocus
143+ placeholder = "username" >
144+
145+ < label > Password</ label >
146+ < input class = 'form-control input-sm'
147+ type = "password"
148+ ng-model = "password"
149+ placeholder = "password" >
150+ </ form >
151+ </ div >
152+
153+ < div class = "modal-footer" >
154+ < button class = "btn btn-primary"
155+ type = "button"
156+ ng-click = "ok()" >
157+ OK
158+ </ button >
159+ < button class = "btn btn-warning"
160+ type = "button"
161+ ng-click = "cancel()" >
162+ Cancel
163+ </ button >
164+ </ div >
165+ </ script >
166+ </ li >
167+
168+ </ ul >
0 commit comments