
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<div id="header">
	<div id="header-left">
		<h1>
			<a href="/welcome">MasonUml</a>
		</h1>
	</div>
	<div id="header-right">
		<sec:authorize access="isAuthenticated()">

			<p>
				Logged in as <a
					href="/<sec:authentication
						property="principal.username" />"><sec:authentication
						property="principal.username" /></a>. <a href="/user/logout">Logout</a>.
			</p>
		</sec:authorize>
		<sec:authorize access="isAuthenticated() == false">

			<p>
				 <a href="/user/login">Login</a> or <a href="/user/register">register</a>.
			</p>
		</sec:authorize>
	</div>
</div>