]> git.mxchange.org Git - addressbook-war.git/blob - web/WEB-INF/templates/generic/user_profile_link.tpl
Continued:
[addressbook-war.git] / web / WEB-INF / templates / generic / user_profile_link.tpl
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <ui:composition
3         xmlns="http://www.w3.org/1999/xhtml"
4         xmlns:f="http://java.sun.com/jsf/core"
5         xmlns:h="http://java.sun.com/jsf/html"
6         xmlns:ui="http://java.sun.com/jsf/facelets"
7         xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
8
9         <c:choose>
10                 <c:when test="#{profileController.isProfileLinkVisible(user)}">
11                         <h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}">
12                                 <h:outputText id="userName" value="#{user.userName}" />
13                                 <f:param name="userId" value="#{user.userId}" />
14                         </h:link>
15                 </c:when>
16
17                 <c:otherwise>
18                         #{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}
19                 </c:otherwise>
20         </c:choose>
21 </ui:composition>