]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/guest/user/user_profile.xhtml
Continued porting templates:
[jjobs-war.git] / web / guest / user / user_profile.xhtml
index 62ff8d7d9f8090b6730fdb538542b742b4b04431..55f8af2a73dcc4984b0f0ea77335f67ae13d98dc 100644 (file)
                        </f:metadata>
                </ui:define>
 
-               <ui:define name="login_title">#{msg.PAGE_TITLE_USER_LOGIN_USER_PROFILE}</ui:define>
-               <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
+               <ui:define name="login_title">
+                       <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_USER_PROFILE}" />
+               </ui:define>
+
+               <ui:define name="guest_title">
+                       <h:outputText value="#{msg.PAGE_TITLE_INDEX_USER_PROFILE}" />
+               </ui:define>
 
                <ui:define name="content_header">
-                       #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
+                       <h:outputText value="#{msg.CONTENT_TITLE_INDEX_USER_PROFILE}" />
                </ui:define>
 
                <ui:define name="content">
                                        <ui:include src="/WEB-INF/templates/user/userid_error.tpl" />
                                </ui:fragment>
 
-                               <h:outputText value="#{msg.ERROR_PROFILE_NOT_VISIBLE}" rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}" />
+                               <ui:fragment rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}">
+                                       <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+                                               <ui:param name="message" value="#{msg.ERROR_PROFILE_NOT_VISIBLE}" />
+                                               <ui:param name="styleClass" value="errors" />
+                                       </ui:include>
+                               </ui:fragment>
 
                                <ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
                                        <div align="center">
                        </ui:fragment>
 
                        <ui:fragment rendered="#{not userController.isPublicUserProfileEnabled()}">
-                               <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
+                               <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+                                       <ui:param name="message" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
+                                       <ui:param name="styleClass" value="errors" />
+                               </ui:include>
                        </ui:fragment>
                </ui:define>
        </ui:composition>