added a simplified user menu and login button for collapsed navbars, closes #801

pull/803/merge
Justin Richer 10 years ago
parent 31d5e3ad0e
commit 5b02e18f7c

@ -81,7 +81,8 @@
</security:authorize>
<ul class="nav pull-right">
<!-- use a full user menu and button when not collapsed -->
<ul class="nav pull-right visible-desktop">
<security:authorize access="hasRole('ROLE_USER')">
<li class="dropdown">
<a id="userButton" class="dropdown-toggle" data-toggle="dropdown" href=""><i class="icon-user icon-white"></i> ${ shortName } <span class="caret"></span></a>
@ -98,6 +99,20 @@
</li>
</security:authorize>
</ul>
<!-- use a simplified user button system when collapsed -->
<ul class="nav hidden-desktop">
<security:authorize access="hasRole('ROLE_USER')">
<li><a href="manage/#user/profile">${ longName }</a></li>
<li class="divider"></li>
<li><a href="logout"><i class="icon-remove"></i> <spring:message code="topbar.logout"/></a></li>
</security:authorize>
<security:authorize access="!hasRole('ROLE_USER')">
<li>
<a href="login" data-toggle="collapse" data-target=".nav-collapse"><i class="icon-lock"></i> <spring:message code="topbar.login"/></a>
</li>
</security:authorize>
</ul>
</div><!--/.nav-collapse -->
</c:if>

Loading…
Cancel
Save