]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/user/user_profile_link.tpl
e85accf1ecdaf6ac77163db9da8ee70f7a3a26c9
[pizzaservice-war.git] / web / WEB-INF / templates / user / 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://xmlns.jcp.org/jsf/facelets">
7
8         <ui:fragment rendered="#{empty user}">
9                 <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
10                         <ui:param name="message" value="#{msg.ERROR_PARAMETER_USER_NOT_SET}" />
11                         <ui:param name="styleClass" value="errors" />
12                 </ui:include>
13         </ui:fragment>
14
15         <h:outputText styleClass="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" rendered="#{not empty user and not profileController.isProfileLinkVisibleByUser(user)}" />
16
17         <h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}" rendered="#{not empty user and profileController.isProfileLinkVisibleByUser(user)}">
18                 <h:outputText id="userName" value="#{user.userName}" />
19                 <f:param name="userId" value="#{user.userId}" />
20         </h:link>
21 </ui:composition>