]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
expanded user list (again)
authorRoland Haeder <roland@mxchange.org>
Thu, 28 Jul 2016 19:58:06 +0000 (21:58 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 28 Jul 2016 19:58:06 +0000 (21:58 +0200)
web/guest/user/user_list.xhtml

index ba5819161505825c39b18cb599a37e77ad096284..afcb44da7620c95686a2e5159476585db83d8561 100644 (file)
@@ -2,9 +2,9 @@
 <html
        lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
        xmlns="http://www.w3.org/1999/xhtml"
-         xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
-         xmlns:h="http://xmlns.jcp.org/jsf/html"
-         xmlns:f="http://xmlns.jcp.org/jsf/core">
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
+       xmlns:h="http://xmlns.jcp.org/jsf/html"
+       xmlns:f="http://xmlns.jcp.org/jsf/core">
 
        <ui:composition template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl">
                <ui:define name="login_title">#{msg.PAGE_TITLE_USER_LIST}</ui:define>
                                                        <f:facet name="header">#{msg.USER_CREATED}</f:facet>
                                                        <h:outputFormat id="userCreated" value="#{user.userCreated.time}" title="#{msg.USER_CREATED_TITLE}" />
                                                </h:column>
+
+                                               <h:column>
+                                                       <f:facet name="header">#{msg.USER_CREATED}</f:facet>
+                                                       <h:outputFormat id="userCreated" value="#{user.userCreated.time}" title="#{msg.USER_CREATED_TITLE}" />
+                                               </h:column>
+
+                                               <h:column>
+                                                       <f:facet name="header">#{msg.USER_LIST_SHARING_ADDRESSBOOKS}</f:facet>
+                                                       <ui:fragment rendered="#{loginController.isUserLoggedIn()}">
+                                                               <h:link outcome="login_list_sharing_addressbooks" value="#{msg.LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS}" title="#{msg.LINK_LOGIN_LIST_SHARING_ADDRESSBOOKS_TITLE}">
+                                                                       <f:param name="userId" value="#{user.userId}" />
+                                                               </h:link>
+                                                       </ui:fragment>
+                                                       <ui:fragment rendered="#{not loginController.isUserLoggedIn()}">
+                                                               <h:outputText id="userShared" value="#{addressbookController.countAllUserSharedAddressbooks(user)}" />
+                                                       </ui:fragment>
+                                               </h:column>
                                        </h:dataTable>
                                </div>
 
-                       <h:outputText styleClass="errors" value="#{msg.ERROR_USER_LIST_DISABLED}" rendered="#{featureController.isFeatureEnabled('user_list')}" />
+                               <h:outputText styleClass="errors" value="#{msg.ERROR_USER_LIST_DISABLED}" rendered="#{featureController.isFeatureEnabled('user_list')}" />
+                       </ui:fragment>
                </ui:define>
        </ui:composition>
 </html>