3 ~ Licensed under the Apache License, Version 2.0 (the "License");
4 ~ you may not use this file except in compliance with the License.
5 ~ You may obtain a copy of the License at
7 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~ Unless required by applicable law or agreed to in writing, software
10 ~ distributed under the License is distributed on an "AS IS" BASIS,
11 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 ~ See the License for the specific language governing permissions and
13 ~ limitations under the License.
16 <%@ taglib uri="/struts-tags" prefix="s" %>
17 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
18 <%@ taglib uri="/redback/taglib-1.0" prefix="redback" %>
20 <span class="securityLinks">
23 <c:when test="${sessionScope.securitySession.authenticated != true}">
24 <s:url id="loginUrl" action="login" namespace="/security" includeParams="none"/>
25 <s:url id="registerUrl" action="register" namespace="/security" includeParams="none"/>
26 <s:a id="loginLink" href="%{loginUrl}"><s:text name="login"/></s:a><redback:isNotReadOnlyUserManager> - <s:a id="registerLink" href="%{registerUrl}"><s:text name="register"/></s:a></redback:isNotReadOnlyUserManager>
29 <s:url id="logoutUrl" action="logout" namespace="/security" includeParams="none"/>
30 <s:url id="accountUrl" action="account" namespace="/security" includeParams="none" />
32 <s:text name="current.user"/>
34 <c:when test="${sessionScope.securitySession.user != null}">
35 <span class="fullname"><s:a href="%{accountUrl}" cssClass="edit"><c:out value="${sessionScope.securitySession.user.fullName}" /></s:a></span>
36 (<span class="username"><c:out value="${sessionScope.securitySession.user.username}" /></span>)
39 <span class="fullname"><s:text name="%{unknown.user}"/></span>
43 <redback:isNotReadOnlyUserManager>
44 - <s:a id="editUserLink" href="%{accountUrl}" cssClass="edit"><s:text name="edit.details"/></s:a>
45 </redback:isNotReadOnlyUserManager>
46 - <s:a id="logoutLink" href="%{logoutUrl}" cssClass="logout"><s:text name="logout"/></s:a>
48 <c:if test="${sessionScope.passwordExpirationNotification != null}">
49 - <s:text name="notify.password.expiration"/> ${sessionScope.passwordExpirationNotification}