2014-01-03 04:47:31 -05:00
|
|
|
doctype html
|
2013-11-18 01:13:52 -05:00
|
|
|
html
|
2013-11-13 22:19:37 -05:00
|
|
|
head
|
2013-11-16 12:55:40 -05:00
|
|
|
meta(charset='utf-8')
|
|
|
|
meta(http-equiv='X-UA-Compatible', content='IE=edge')
|
|
|
|
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
|
|
|
meta(name='description', content='')
|
|
|
|
meta(name='author', content='')
|
2013-12-11 21:56:04 -05:00
|
|
|
|
2013-11-18 23:55:20 -05:00
|
|
|
title #{title} - Starter Template for Bootstrap
|
2013-12-11 21:56:04 -05:00
|
|
|
|
|
|
|
link(href='/css/lib/font-awesome.min.css', rel='stylesheet')
|
2014-01-23 18:31:22 -05:00
|
|
|
link(href='/css/lib/animate.css', rel='stylesheet')
|
|
|
|
|
2013-12-11 15:34:53 -05:00
|
|
|
link(href='/css/styles.css', rel='stylesheet')
|
2014-01-23 18:31:22 -05:00
|
|
|
|
2013-12-04 18:35:40 -05:00
|
|
|
script(src='/js/lib/jquery.js')
|
|
|
|
script(src='/js/lib/bootstrap.js')
|
|
|
|
script(src='/js/main.js')
|
2013-11-13 22:19:37 -05:00
|
|
|
body
|
2013-12-17 23:36:59 -05:00
|
|
|
.navbar.navbar-default.navbar-fixed-top
|
2013-11-16 12:55:40 -05:00
|
|
|
.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
|
2013-11-16 13:46:49 -05:00
|
|
|
a.navbar-brand(href='/') Project name
|
2013-11-16 12:55:40 -05:00
|
|
|
.collapse.navbar-collapse
|
|
|
|
ul.nav.navbar-nav
|
2013-11-18 01:13:52 -05:00
|
|
|
li(class=title=='Home'?'active':undefined)
|
2013-11-16 13:46:49 -05:00
|
|
|
a(href='/') Home
|
2013-11-19 23:19:53 -05:00
|
|
|
li(class=title=='API Browser'?'active':undefined)
|
|
|
|
a(href='/api') API Browser
|
2013-11-18 01:13:52 -05:00
|
|
|
li(class=title=='Contact'?'active':undefined)
|
2013-11-19 14:36:10 -05:00
|
|
|
a(href='/contact') Contact
|
2013-11-16 13:24:06 -05:00
|
|
|
ul.nav.navbar-nav.navbar-right
|
2013-11-18 14:26:25 -05:00
|
|
|
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
|
2014-01-23 20:35:19 -05:00
|
|
|
li.dropdown(class=title=='Account Management'?'active':undefined)
|
|
|
|
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
2013-12-11 22:16:06 -05:00
|
|
|
if user.profile.picture
|
|
|
|
img(src='#{user.profile.picture}')
|
2014-01-23 20:35:19 -05:00
|
|
|
| #{user.profile.name || user.id}
|
|
|
|
i.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
li
|
|
|
|
a(href='/account') My Account
|
|
|
|
li.divider
|
|
|
|
li
|
|
|
|
a(href='/logout') Logout
|
2013-11-16 13:24:06 -05:00
|
|
|
.container
|
2013-11-18 23:26:59 -05:00
|
|
|
block content
|