]> git.mxchange.org Git - jjobs-war.git/blobdiff - web/WEB-INF/templates/generic/user_profile_link.tpl
added methods for changing email address (partly unfinished) + updated jar(s)
[jjobs-war.git] / web / WEB-INF / templates / generic / user_profile_link.tpl
index c142209e97cdaa673fa06a105fa989af513c7e32..037b83a4a6674bb72ba9350d10a0d17f927c2654 100644 (file)
@@ -5,12 +5,12 @@
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
 
-       <h:outputText styleClass="notice" value="#{msg.ERROR_USER_INSTANCE_NOT_SET}" rendered="#{empty profileController.user}" />
+       <h:outputText styleClass="notice" value="#{msg.ERROR_USER_INSTANCE_NOT_SET}" rendered="#{empty user}" />
 
-       <h:outputText class="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" rendered="#{not empty profileController.user and not profileController.isProfileLinkVisible()}" />
+       <h:outputText class="notice" value="#{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE}" rendered="#{not empty user and not profileController.isProfileLinkVisibleByUser(user)}" />
 
-       <h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}" rendered="#{not empty profileController.user and profileController.isProfileLinkVisible()}">
-               <h:outputText id="userName" value="#{profileController.user.userName}" />
-               <f:param name="userId" value="#{profileController.user.userId}" />
+       <h:link id="userProfileLink" outcome="user_profile" title="#{msg.LINK_USER_PROFILE_TITLE}" rendered="#{not empty user and profileController.isProfileLinkVisibleByUser(user)}">
+               <h:outputText id="userName" value="#{user.userName}" />
+               <f:param name="userId" value="#{user.userId}" />
        </h:link>
 </ui:composition>