File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 18
18
<a class =" nav-link" href =" tos" ><i class =" fa-solid fa-file-contract me-2" ></i >Terms of Service</a >
19
19
</li >
20
20
<li <% if(active === ' login' ){ % ><% - " class='nav-item active'" %><% } else { % >< %- " class='nav-item'" % >< % }%> <% if (request .session .identifier ) { % > style= " display: none;" < % } %> >
21
- < a class = " nav-link " href = " login " >< i class = " fa-solid fa-user me-2 " ></ i ></ i > Log In</ a >
21
+
22
22
</li >
23
23
24
24
</ul >
25
25
26
- <ul class =" navbar-nav ms-auto" <% if (!request.session.identifier) { % >style="display: none;"<% } %> >
27
- <li class =" nav-item dropdown" >
26
+ <ul class =" navbar-nav ms-auto" >
27
+ <a <% if (request.session.identifier) { % >style="display: none;"<% } %> class="nav-link" href="login"><i class =" fa-solid fa-user me-2" ></i >Log In</a >
28
+ <li class =" nav-item dropdown" <% if (!request.session.identifier) { % >style="display: none;"<% } %> >
28
29
<a class =" nav-link dropdown-toggle" href =" #" id =" navbarDropdownMenuLink" role =" button" data-bs-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
29
- <img src =" https://s3.eu-central-1.amazonaws.com/bootstrapbaymisc/blog/24_days_bootstrap/fox.jpg" width =" 40" height =" 40" class =" rounded-circle" >
30
+ <img < % if (request.session.identifier) { % > src= <% - JSON . stringify ( request . session . metadata . picture ) %> <% } else {src = " https://s3.eu-central-1.amazonaws.com/bootstrapbaymisc/blog/24_days_bootstrap/fox.jpg" } %> width="40" height="40" class="rounded-circle">
30
31
</a >
31
32
<div class =" dropdown-menu dropdown-menu-end" >
33
+ <a href =" profile" class =" dropdown-item disabled" >Profile</a >
32
34
<a href =" dashboard" class =" dropdown-item " >Dashboard</a >
33
35
<a href =" settings" class =" dropdown-item" >Settings</a >
34
36
<div class =" dropdown-divider" ></div >
You can’t perform that action at this time.
0 commit comments