Files
complete-node-bootcamp/4-natours/after-section-13/views/_header.pug
Jonas Schmedtmann 7f81af0ddf Initial commit 🚀
2019-06-13 15:43:15 +01:00

14 lines
456 B
Plaintext

header.header
nav.nav.nav--tours
a.nav__el(href='/') All tours
.header__logo
img(src='/img/logo-white.png' alt='Natours logo')
nav.nav.nav--user
if user
a.nav__el.nav__el--logout Log out
a.nav__el(href='/me')
img.nav__user-img(src=`/img/users/${user.photo}` alt=`Photo of ${user.name}`)
span= user.name.split(' ')[0]
else
a.nav__el(href='/login') Log in
a.nav__el.nav__el--cta(href='#') Sign up