50 lines
2.2 KiB
Plaintext
50 lines
2.2 KiB
Plaintext
doctype html
|
|
html
|
|
head
|
|
meta(charset='utf-8')
|
|
meta(name='viewport', content='width=device-width, initial-scale=1, shrink-to-fit=no')
|
|
block css
|
|
link(rel='stylesheet', href='/static/bootstrap/css/bootstrap.min.css')
|
|
style.
|
|
.navbar .btn {
|
|
margin-right: 10px;
|
|
}
|
|
body {
|
|
padding-top: 65px;
|
|
}
|
|
block extracss
|
|
title ADEjs
|
|
body
|
|
nav.navbar.navbar-expand-lg.navbar-dark.bg-dark.fixed-top
|
|
.container
|
|
a.navbar-brand(href=getUrl("index")) ADEjs
|
|
button.navbar-toggler(type='button', data-toggle='collapse', data-target='#navbarResponsive', aria-controls='navbarResponsive', aria-expanded='false', aria-label='Toggle navigation')
|
|
span.navbar-toggler-icon
|
|
#navbarResponsive.collapse.navbar-collapse
|
|
ul.navbar-nav
|
|
if session.user !== undefined
|
|
li.nav-item
|
|
a.nav-link(href=getUrl("total")) Total
|
|
ul.navbar-nav.ml-auto
|
|
if session.user === undefined
|
|
li.nav-item
|
|
a.btn.btn-light(href=getUrl("login"), role='button')
|
|
| Sign in
|
|
li.nav-item
|
|
a.btn.btn-success(href=getUrl("signup"), role='button')
|
|
| Sign up
|
|
else
|
|
li.nav-item
|
|
a.nav-link(href=getUrl("settings"))
|
|
| #{session.user._username.value}
|
|
li.nav-item
|
|
a.btn.btn-light(href=getUrl("logout"), role='button')
|
|
| Log out
|
|
.container
|
|
block content
|
|
script(src='/static/bootstrap/js/jquery.min.js')
|
|
script(src='/static/bootstrap/js/popper.min.js')
|
|
script(src='/static/bootstrap/js/bootstrap.min.js')
|
|
block extrajs
|
|
|