]> 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="#{user == null}">
11                         <h:outputText class="notice" value="#{msg.ERROR_USER_INSTANCE_NOT_SET}" />
12                 </c:when>
13
14                 <c:when test="profileController.isProfileLinkVisible(user)}">
15                         <h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}">
16                                 <h:outputText id="userName" value="#{user.userName}" />
17                                 <f:param name="userId" value="#{user.userId}" />
18                         </h:link>
19                 </c:when>
20
21                 <c:otherwise>
22                         <h:outputText class="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" />
23                 </c:otherwise>
24         </c:choose>
25 </ui:composition>