mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 16:17:37 +00:00
These are non visual-only or not decorative-only hence context information added to alts Thanks!
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
.navbar.navbar-default.navbar-fixed-top
|
|
.container
|
|
.navbar-header
|
|
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
|
|
span.sr-only Toggle navigation
|
|
span.icon-bar
|
|
span.icon-bar
|
|
span.icon-bar
|
|
a.navbar-brand(href='/')
|
|
i.fa.fa-cube
|
|
| Project name
|
|
.collapse.navbar-collapse
|
|
ul.nav.navbar-nav
|
|
li(class=(title == 'Home') ? 'active' : undefined)
|
|
a(href='/') Home
|
|
li(class=(title == 'API Examples') ? 'active' : undefined)
|
|
a(href='/api') API Examples
|
|
li(class=(title == 'Contact') ? 'active' : undefined)
|
|
a(href='/contact') Contact
|
|
ul.nav.navbar-nav.navbar-right
|
|
if !user
|
|
li(class=(title == 'Login') ? 'active' : undefined)
|
|
a(href='/login') Login
|
|
li(class=(title == 'Create Account') ? 'active' : undefined)
|
|
a(href='/signup') Create Account
|
|
else
|
|
li.dropdown(class=(title == 'Account Management') ? 'active' : undefined)
|
|
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
|
if user.profile.picture
|
|
img(src=user.profile.picture, alt=(user.profile.name || user.email || user.id))
|
|
else
|
|
img(src=user.gravatar(60), alt=(user.profile.name || user.email || user.id))
|
|
span= user.profile.name || user.email || user.id
|
|
i.caret
|
|
ul.dropdown-menu
|
|
li
|
|
a(href='/account') My Account
|
|
li.divider
|
|
li
|
|
a(href='/logout') Logout
|