adejs/templates/base.pug

61 lines
2.6 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=getStatic('bootstrap/css/bootstrap.min.css'))
style.
.navbar .btn {
margin-right: 10px;
}
body {
padding-top: 65px;
}
*::-moz-focus-inner {
border: 0;
}
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
li.nav-item
a.nav-link(href=getUrl("totalByCourse")) Total by course
li.nav-item
a.nav-link(href=getUrl("calendar")) Calendar
li.nav-item
a.nav-link(href=getUrl("histogram")) Histogram
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=getStatic('bootstrap/js/jquery.min.js'))
script(src=getStatic('bootstrap/js/popper.min.js'))
script(src=getStatic('bootstrap/js/bootstrap.min.js'))
block extrajs