1
0
Fork 0

add profil redirect

This commit is contained in:
p1905074 2020-11-23 21:28:17 +01:00
parent 9703f42d32
commit 5a39d169b3
2 changed files with 9 additions and 4 deletions

View file

@ -19,3 +19,8 @@ socket.on("logout", data=>{
window.location.href = "/";
}
})
function profilRedirect(){
document.location.href="/profil";
}

View file

@ -2,16 +2,16 @@ extends layout
block navbar
if student === true
div(id="navprofile" class="student")
div(id="navprofile" class="student" onclick="profilRedirect()")
p Kezel Benoit
p G4S3
a(id="logout") Logout
if teacher === true
div(id="navprofile" class="teacher")
div(id="navprofile" class="teacher" onclick="profilRedirect()")
p Kezel Benoit
a(id="logout") Logout
if admin === true
div(id="navprofile" class="admin")
div(id="navprofile" class="admin" onclick="profilRedirect()")
p Kezel Benoit
a(id="logout") Logout