1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
letu/views/template/navbar.pug

57 lines
2.3 KiB
Text

extends layout
block navbar
if session.user.permissions === 1
div(id="navprofile" class="student" onclick="profilRedirect()")
p=session.user.firstName + " " + session.user.lastName
if session.user.Groups[session.user.Groups.length-1].number.startsWith("G")
p=session.user.Groups[session.user.Groups.length-1].number + session.user.Groups[session.user.Groups.length-1].Semester.name
else
p=session.user.Groups[session.user.Groups.length-1].Semester.name + " " + session.user.Groups[session.user.Groups.length-1].number
a(id="logout") Logout
if session.user.permissions === 2
div(id="navprofile" class="teacher" onclick="profilRedirect()")
p=session.user.firstName + " " + session.user.lastName
a(id="logout") Logout
if session.user.permissions === 3
div(id="navprofile" class="admin" onclick="profilRedirect()")
p=session.user.firstName + " " + session.user.lastName
a(id="logout") Logout
div(id="navtop")
ul
if student === true
li(class="active")
a(href="/") Home
li
a(href="/edt") Planning
li
a(href="/marks") Marks
li
a(href="https://mail.univ-lyon1.fr/owa/") Mail
li
a(href="https://clarolineconnect.univ-lyon1.fr/") Claroline
li
a(href="/viescol") School and student life
if teacher === true
li(class="active")
a(href="/") Home
li
a(href="/edt") Planning
li
a(href="/marks") Marks
li
a(href="https://mail.univ-lyon1.fr/owa/") Mail
li
a(href="https://clarolineconnect.univ-lyon1.fr/") Claroline Connect
li
a(href="/viescol") School and student life
if admin === true
li(class="active")
a Accueil
li
a Notes
li
a Vie scolaire et étudiante
li
a Gestion des profils