</ui:define>
<ui:define name="content">
- <ui:fragment rendered="#{userController.isUserIdEmpty()}">
- <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
- </ui:fragment>
+ <ui:fragment rendered="#{userController.isPublicUserProfileEnabled()}">
+ <ui:fragment rendered="#{userController.isUserIdEmpty()}">
+ <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
+ </ui:fragment>
+
+ <ui:fragment rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}">
+ #{msg.ERROR_PROFILE_NOT_VISIBLE}
+ </ui:fragment>
- <ui:fragment rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}">
- #{msg.ERROR_PROFILE_NOT_VISIBLE}
+ <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
+ <div align="center">
+ <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
+ <f:facet name="header">
+ #{msg.PUBLIC_USER_PROFILE}
+ </f:facet>
+ </h:panelGrid>
+ </div>
+ </ui:fragment>
</ui:fragment>
- <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
- <div align="center">
- <h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
- <f:facet name="header">
- #{msg.PUBLIC_USER_PROFILE}
- </f:facet>
- </h:panelGrid>
- </div>
+ <ui:fragment rendered="#{not userController.isPublicUserProfileEnabled()}">
+ <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
</ui:fragment>
</ui:define>
</ui:composition>