add profil redirect
This commit is contained in:
parent
9703f42d32
commit
5a39d169b3
2 changed files with 9 additions and 4 deletions
|
@ -18,4 +18,9 @@ socket.on("logout", data=>{
|
||||||
}else{
|
}else{
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
function profilRedirect(){
|
||||||
|
document.location.href="/profil";
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue