]> git.mxchange.org Git - pizzaservice-war.git/blob - web/WEB-INF/templates/user/user_profile_link.tpl
Please cherry-pick:
[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:widgets="http://mxchange.org/jsf/core/widgets"
5         xmlns:f="http://java.sun.com/jsf/core"
6         xmlns:h="http://java.sun.com/jsf/html"
7         xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
8
9         <widgets:outputMessageBox message="#{msg.ERROR_PARAMETER_USER_NOT_SET}" styleClass="errors" rendered="#{empty user}" />
10
11         <h:outputText styleClass="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" rendered="#{not empty user and not profileController.isProfileLinkVisibleByUser(user)}" />
12
13         <h:link outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}" rendered="#{not empty user and profileController.isProfileLinkVisibleByUser(user)}">
14                 <h:outputText value="#{user.userName}" />
15                 <f:param name="userId" value="#{user.userId}" />
16         </h:link>
17 </ui:composition>