File tree Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2+ { load_templates designs/site.subtemplates.tpl}
23<html lang =" en" >
34
45<head >
7071 <ul class =" dropdown-menu search" id =" navbarSearchBarDropdown" aria-labelledby =" navbarDropdown" >
7172 </ul >
7273 </li >
73- <li class =" nav-item show" >
74- <a class =" nav-link " href =" /login?return=%2F" id =" navbarDropdown" role =" button" aria-haspopup =" false" aria-expanded =" false" >
75- Login
76- </a >
77- </li >
78- <li class =" nav-item show" >
79- <a class =" nav-link " href =" /register?return=%2F" id =" navbarDropdown" role =" button" aria-haspopup =" false" aria-expanded =" false" >
80- Signup
81- </a >
82- </li >
74+ { if $.User}
75+ <li class =" nav-item dropdown" >
76+ <a class =" nav-link dropdown-toggle" href =" #" id =" navbarDropdown" role =" button" data-toggle =" dropdown" aria-haspopup =" true" aria-expanded =" false" >
77+ { avatar $.User 18} { $.User-> FirstName }
78+ </a >
79+ <div class =" dropdown-menu" aria-labelledby =" navbarDropdown" >
80+ { include includes/site-bootstrap4.nav-userlinks.tpl}
81+ </div >
82+ </li >
83+ { else }
84+ <li class =" nav-item show" >
85+ <a class =" nav-link" href =" /login?return={ $.server.REQUEST_URI|escape :url} " id =" navbarDropdown" role =" button" aria-haspopup =" false" aria-expanded =" false" >
86+ { _ " Login" }
87+ </a >
88+ </li >
89+ <li class =" nav-item show" >
90+ <a class =" nav-link" href =" /register?return={ $.server.REQUEST_URI|escape :url} " id =" navbarDropdown" role =" button" aria-haspopup =" false" aria-expanded =" false" >
91+ { _ " Signup" }
92+ </a >
93+ </li >
94+ { /if }
8395 </ul >
8496 </div >
8597 </div >
Original file line number Diff line number Diff line change 1+ <a class =" dropdown-item nav-link" href =" { $.User-> getURL ()} " >{ _ " View My Profile" } </a >
2+ <a class =" dropdown-item nav-link" href =" /profile" >{ _ " Edit My Profile" } </a >
3+ <a class =" dropdown-item nav-link" href =" /logout" >{ _ " Logout" } </a >
You can’t perform that action at this time.
0 commit comments