adejs/templates/base.pug

51 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-09-23 11:39:42 +02:00
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;
}
2017-09-25 17:17:24 +02:00
block extracss
2017-09-23 11:39:42 +02:00
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
2017-09-24 00:38:12 +02:00
a.nav-link(href=getUrl("total")) Total
2017-09-23 11:39:42 +02:00
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
2017-09-23 18:20:56 +02:00
a.btn.btn-success(href=getUrl("signup"), role='button')
2017-09-23 11:39:42 +02:00
| Sign up
else
li.nav-item
2017-09-24 01:03:25 +02:00
a.nav-link(href=getUrl("settings"))
2017-09-23 18:20:56 +02:00
| #{session.user._username.value}
2017-09-23 11:39:42 +02:00
li.nav-item
2017-09-23 11:45:28 +02:00
a.btn.btn-light(href=getUrl("logout"), role='button')
2017-09-23 11:39:42 +02:00
| Log out
.container
block content
2017-09-29 10:39:38 +02:00
2017-09-23 11:39:42 +02:00
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