Commit 285b1059 authored by Matija Obreza's avatar Matija Obreza
Browse files

User pulldown menu

parent 6f140f2c
......@@ -67,3 +67,7 @@ sample.message.permissions = Permissions
sample.message.organizations = Organizations
sample.message.invite.organizations = Invite Organizations
sample.message.invite.to.network = Invite to Network
user.pulldown.logout=Logout
user.pulldown.profile=View profile
......@@ -62,6 +62,23 @@
</ul>
</div>
</div>
<sec:authorize access="isAuthenticated()">
<div class="navbar pull-right">
<ul class="nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" title="<spring:message code="sample.message.change.locale"/>">
You are <b>${user.username}</b>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="<c:url value="/profile" />"><spring:message code="user.pulldown.profile"/></a></li>
<li><a href="<c:url value="/logout" />"><spring:message code="user.pulldown.logout"/></a></li>
</ul>
</li>
</ul>
</div>
</sec:authorize>
</div>
</div>
......@@ -69,10 +86,6 @@
<div class="page-header">
<a href="<c:url value="/" />">Home</a>
<a href="<c:url value="/data" />">Datasets</a>
<sec:authorize access="isAuthenticated()">
<div class="pull-right">You are <b>${user.username}</b></div>
</sec:authorize>
</div>
<div id="dialog"></div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment