mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2026-03-22 04:38:57 +00:00
- packages updated
- porting to bootstrap 4
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
if messages.errors
|
||||
.alert.alert-danger.fade.in
|
||||
.alert.alert-danger.fade.show
|
||||
button.close(type='button', data-dismiss='alert')
|
||||
i.fa.fa-times-circle-o
|
||||
for error in messages.errors
|
||||
div= error.msg
|
||||
if messages.info
|
||||
.alert.alert-info.fade.in
|
||||
.alert.alert-info.fade.show
|
||||
button.close(type='button', data-dismiss='alert')
|
||||
i.fa.fa-times-circle-o
|
||||
for info in messages.info
|
||||
div= info.msg
|
||||
if messages.success
|
||||
.alert.alert-success.fade.in
|
||||
.alert.alert-success.fade.show
|
||||
button.close(type='button', data-dismiss='alert')
|
||||
i.fa.fa-times-circle-o
|
||||
for success in messages.success
|
||||
|
||||
@@ -1,31 +1,28 @@
|
||||
.navbar.navbar-default.navbar-fixed-top
|
||||
nav.navbar.navbar-expand-lg.navbar-light.bg-light.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
|
||||
button.navbar-toggler(type='button', data-toggle='collapse', data-target='.navbar-collapse')
|
||||
span.navbar-toggler-icon
|
||||
a.navbar-brand(href='/')
|
||||
i.fa.fa-cube
|
||||
| Project name
|
||||
|
||||
.collapse.navbar-collapse
|
||||
ul.nav.navbar-nav.mr-auto
|
||||
li.nav-item(class=(title === 'Home') ? 'active' : undefined)
|
||||
a.nav-link(href='/') Home
|
||||
li.nav-item(class=(title === 'API Examples') ? 'active' : undefined)
|
||||
a.nav-link(href='/api') API Examples
|
||||
li.nav-item(class=(title === 'Contact') ? 'active' : undefined)
|
||||
a.nav-link(href='/contact') Contact
|
||||
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
|
||||
li.nav-item(class=(title == 'Login') ? 'active' : undefined)
|
||||
a.nav-link(href='/login') Login
|
||||
li.nav-item(class=(title == 'Create Account') ? 'active' : undefined)
|
||||
a.nav-link(href='/signup') Create Account
|
||||
else
|
||||
li.dropdown(class=(title == 'Account Management') ? 'active' : undefined)
|
||||
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||
li.nav-item.dropdown(class=(title == 'Account Management') ? 'active' : undefined)
|
||||
a.nav-link.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||
if user.profile.picture
|
||||
img(src=user.profile.picture, alt=(user.profile.name || user.email || user.id))
|
||||
else
|
||||
@@ -33,8 +30,8 @@
|
||||
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
|
||||
li.nav-item
|
||||
a.nav-link(href='/account') My Account
|
||||
li.dropdown-divider
|
||||
li.nav-item
|
||||
a.nav-link(href='/logout') Logout
|
||||
|
||||
Reference in New Issue
Block a user