adejs/templates/base.pug

59 lines
2.5 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
2017-09-30 11:48:28 +02:00
link(rel='stylesheet', href=getStatic('bootstrap/css/bootstrap.min.css'))
2017-09-23 11:39:42 +02:00
style.
.navbar .btn {
margin-right: 10px;
}
body {
padding-top: 65px;
}
*::-moz-focus-inner {
border: 0;
}
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-10-03 10:54:49 +02:00
li.nav-item
a.nav-link(href=getUrl("totalByCourse")) Total by course
2018-11-15 17:19:13 +01:00
li.nav-item
a.nav-link(href=getUrl("histogram")) Histogram
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-30 11:48:28 +02:00
script(src=getStatic('bootstrap/js/jquery.min.js'))
script(src=getStatic('bootstrap/js/popper.min.js'))
script(src=getStatic('bootstrap/js/bootstrap.min.js'))
2017-09-23 11:39:42 +02:00
block extrajs