Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
c'est moche mais ça marche :)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Dec 11, 2023
1 parent 0fbc827 commit cb4915c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<nav class="navbar navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="/">Accueil</a>
<a id="profBtn" class="navbar-brand ml-auto" href="/professor" aria-hidden="true">Espace Prof</a>
<a id="adminBtn" class="navbar-brand ml-auto" href="/admin" aria-hidden="true">Espace admin</a>
<a id="connexionBtn" class="navbar-brand ml-auto">Connexion</a>
</div>
Expand Down Expand Up @@ -143,6 +144,11 @@ <h5 class="modal-title" id="alertModalLabel"></h5>
} else {
$('#adminBtn').hide();
}
if (user.role === 'prof') {
$('#profBtn').show();
} else {
$('#profBtn').hide();
}
updateConnectionStatus(true);
},
error: function (error) {
Expand Down

0 comments on commit cb4915c

Please sign in to comment.