<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="fr" data-theme="light">
<head>
	<meta charset="UTF-8">
	<title>${param.titre}</title>
	<link href="bulma.css" rel="stylesheet">
	<link rel="stylesheet" href="styles.css">
	<script src="https://kit.fontawesome.com/39474be7e2.js" crossorigin="anonymous"></script>
</head>
<body>
	<nav class="navbar has-shadow is-white" aria-label="main navigation">
		<div class="navbar-brand">
			<a class="navbar-item" href="/Projet/">
				<h1 class="title is-2">Prise de notes collaborative</h1>
			</a>
		</div>
		<div class="navbar-menu">
			<div class="navbar-end">
			<c:if test="${not empty utilisateur}">
                <div class="navbar-item">
                    <p id="user-login">${utilisateur.login}</p> 
                </div>
            </c:if>
            <c:choose>
                <c:when test="${not empty utilisateur}">
                	<c:if test="${utilisateur.privilege == 'ADMIN'}">
                		<a class="navbar-item" href="SupprimerMessage">Supprimer les messages</a>
                	</c:if>
                    <a class="navbar-item" href="Deconnexion"><i class="fa-solid fa-right-from-bracket"></i></a>
                </c:when>
                <c:otherwise>
                    <a class="navbar-item" href=""><i class="fa-solid fa-right-to-bracket"></i></a>
                    <a class="navbar-item" href="">S'inscrire</a>
                </c:otherwise>
            </c:choose>
			</div>
		</div>
	</nav>
	
	<main class="section">