File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed
Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1818 </ul >
1919 <ul class =" navbar-nav ms-auto" >
2020 <% if (typeof body !== ' undefined' ){% >
21- < li class = " nav-item" >
22- <!-- < a class = " nav-link" aria- current= " page" href= " /users/register" > Logout< / a> -->
21+ <!-- < li class = " nav-item" >
2322 < form method= " POST" action= " /users/logout?_method=DELETE" id= " logout-form" >
24- < a class = " nav-link" type = " submit " href= " javascript:$('#logout-form').submit();" > Logout< / a>
23+ < a class = " nav-link" href= " javascript:$('#logout-form').submit();" > Logout< / a>
2524 < / form>
2625 < / li>
2726 < li class = " nav-item" >
3130 < / li>
3231 < li class = " nav-item" >
3332 < a class = " nav-link" aria- current= " page" href= " /users/addmoney" >< i class = " fas fa-rupee-sign" >< / i> & nbsp;< %= Math .round (body .money * 1000 )/ 1000 % >< / a>
33+ < / li> -->
34+ < li class = " nav-item dropdown" >
35+ < a class = " nav-link dropdown-toggle" href= " #" id= " navbarDropdown"
36+ data- bs- toggle= " dropdown" aria- expanded= " false" >
37+ < img src= " <%=body.picture_url%>" class = " img-fluid"
38+ style= " height: 20px; width:20px; border: 1px solid white; border-radius: 50%;" >
39+ < %= body .username % >
40+ < / a>
41+ < ul class = " dropdown-menu" aria- labelledby= " navbarDropdown" >
42+ < li>< a class = " dropdown-item" href= " /users/changeimage" > Change Profile Image< / a>< / li>
43+ < li>< a class = " dropdown-item" href= " /users/addmoney" > Add money< / a>< / li>
44+ < li>< hr class = " dropdown-divider" >< / li>
45+ < form method= " POST" action= " /users/logout?_method=DELETE" id= " logout-form" >< / form>
46+ < li>< a class = " dropdown-item" href= " javascript:$('#logout-form').submit();" >
47+ Logout < / a>
48+ < / li>
49+ < / ul>
3450 < / li>
51+ < li class = " nav-item" >
52+ < a class = " nav-link" aria- current= " page" >< i class = " fas fa-rupee-sign" >< / i> & nbsp;< %= Math .round (body .money * 1000 )/ 1000 % >< / a>
53+ < / li>
3554 < % } else { % >
3655 < li class = " nav-item" >
3756 < a class = " nav-link" aria- current= " page" href= " /users/login" > Login< / a>
You can’t perform that action at this time.
0 commit comments