diff --git a/public/browserconfig.xml b/public/browserconfig.xml
new file mode 100644
index 0000000..35157e2
--- /dev/null
+++ b/public/browserconfig.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+ #da532c
+
+
+
diff --git a/public/images/android-chrome-192x192.png b/public/images/android-chrome-192x192.png
new file mode 100644
index 0000000..dbd96ea
Binary files /dev/null and b/public/images/android-chrome-192x192.png differ
diff --git a/public/images/android-chrome-512x512.png b/public/images/android-chrome-512x512.png
new file mode 100644
index 0000000..b3c8eb7
Binary files /dev/null and b/public/images/android-chrome-512x512.png differ
diff --git a/public/images/apple-touch-icon.png b/public/images/apple-touch-icon.png
new file mode 100644
index 0000000..1ec4672
Binary files /dev/null and b/public/images/apple-touch-icon.png differ
diff --git a/public/images/favicon-16x16.png b/public/images/favicon-16x16.png
new file mode 100644
index 0000000..f9a356e
Binary files /dev/null and b/public/images/favicon-16x16.png differ
diff --git a/public/images/favicon-32x32.png b/public/images/favicon-32x32.png
new file mode 100644
index 0000000..766fc9c
Binary files /dev/null and b/public/images/favicon-32x32.png differ
diff --git a/public/images/favicon.ico b/public/images/favicon.ico
new file mode 100644
index 0000000..780f472
Binary files /dev/null and b/public/images/favicon.ico differ
diff --git a/public/images/mstile-150x150.png b/public/images/mstile-150x150.png
new file mode 100644
index 0000000..d3d36af
Binary files /dev/null and b/public/images/mstile-150x150.png differ
diff --git a/public/images/safari-pinned-tab.svg b/public/images/safari-pinned-tab.svg
new file mode 100644
index 0000000..8eafe32
--- /dev/null
+++ b/public/images/safari-pinned-tab.svg
@@ -0,0 +1,169 @@
+
+
+
diff --git a/public/site.webmanifest b/public/site.webmanifest
new file mode 100644
index 0000000..99062eb
--- /dev/null
+++ b/public/site.webmanifest
@@ -0,0 +1,19 @@
+{
+ "name": "Lyon's Exceptional Tool for University",
+ "short_name": "L'ETU",
+ "icons": [
+ {
+ "src": "/images/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/images/android-chrome-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#ffffff",
+ "background_color": "#ffffff",
+ "display": "standalone"
+}
diff --git a/views/template/layout.pug b/views/template/layout.pug
index bb707d2..07b2950 100644
--- a/views/template/layout.pug
+++ b/views/template/layout.pug
@@ -5,6 +5,14 @@ html
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")
link(rel="stylesheet", href="/stylesheets/style.css")
+ 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")
script(src="/socket.io/socket.io.js")
body
- let student = true
diff --git a/views/template/navbar.pug b/views/template/navbar.pug
index b2b64b7..4b0baaa 100644
--- a/views/template/navbar.pug
+++ b/views/template/navbar.pug
@@ -2,16 +2,17 @@ extends layout
block navbar
ul#slide-out.sidenav
- if student === true
+ if session.user.permissions === 1
li
.user-view.student
p
span.white-text.name=session.user.firstName + " " + session.user.lastName
p
- if session.user.Groups[session.user.Groups.length-1].number.startsWith("G")
- span.white-text.name=session.user.Groups[session.user.Groups.length-1].number + session.user.Groups[session.user.Groups.length-1].Semester.name
- else
- span.white-text.name=session.user.Groups[session.user.Groups.length-1].Semester.name + " " + session.user.Groups[session.user.Groups.length-1].number
+ if session.user.Groups[session.user.Groups.length-1]
+ if session.user.Groups[session.user.Groups.length-1].number.startsWith("G")
+ span.white-text.name=session.user.Groups[session.user.Groups.length-1].number + session.user.Groups[session.user.Groups.length-1].Semester.name
+ else
+ span.white-text.name=session.user.Groups[session.user.Groups.length-1].Semester.name + " " + session.user.Groups[session.user.Groups.length-1].number
p
span.white-text.email=session.user.email
@@ -28,7 +29,7 @@ block navbar
li
a(href="/viescol" class="waves-effect") School and student life
- if teacher === true
+ if session.user.permissions === 2
li
.user-view.teacher
p(href='#name')
@@ -48,7 +49,7 @@ block navbar
li
a(href="/viescol" class="waves-effect") School and student life
- if admin === true
+ if session.user.permissions === 3
li
.user-view.admin
p(href='#name')