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

@ -18,4 +18,9 @@ socket.on("logout", data=>{
}else{ }else{
window.location.href = "/"; window.location.href = "/";
} }
}) })
function profilRedirect(){
document.location.href="/profil";
}

View file

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