2020-06-08 10:56:38 +02:00
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
title= title
|
2020-10-12 20:53:57 +02:00
|
|
|
link(href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet")
|
|
|
|
link(rel="stylesheet", href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css")
|
2020-06-08 10:56:38 +02:00
|
|
|
link(rel="stylesheet", href="/stylesheets/style.css")
|
2020-12-14 23:39:44 +01:00
|
|
|
link(rel="icon" type="image/png" href="/images/favicon.ico")
|
|
|
|
link(rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png")
|
|
|
|
link(rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png")
|
|
|
|
link(rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png")
|
|
|
|
link(rel="manifest" href="/site.webmanifest")
|
|
|
|
link(rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5")
|
|
|
|
meta(name="msapplication-TileColor" content="#da532c")
|
|
|
|
meta(name="theme-color" content="#ffffff")
|
2020-10-12 22:46:22 +02:00
|
|
|
script(src="/socket.io/socket.io.js")
|
2021-01-21 11:06:24 +01:00
|
|
|
script(src="/javascripts/main.js")
|
2020-06-08 10:56:38 +02:00
|
|
|
body
|
2021-01-21 11:06:24 +01:00
|
|
|
-
|
|
|
|
var student = false, teacher = false, admin = false;
|
|
|
|
if (session.user) {
|
|
|
|
switch (session.user.permissions) {
|
|
|
|
case 1:
|
|
|
|
student = true;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
teacher = true;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
admin = true;
|
|
|
|
}
|
|
|
|
}
|
2020-11-03 08:24:17 +01:00
|
|
|
div(class="row" id="page")
|
2020-12-12 18:38:03 +01:00
|
|
|
block navbar
|
|
|
|
div(class="col s12" id="main")
|
2020-11-03 08:24:17 +01:00
|
|
|
block content
|
2020-10-12 21:12:34 +02:00
|
|
|
script(src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js")
|
2020-12-12 18:38:03 +01:00
|
|
|
script.
|
|
|
|
M.AutoInit();
|