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