From: Roland Haeder Date: Mon, 19 Oct 2015 11:30:07 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f54bfd81c3f52aaf65f70eb7691e958d7ce13674;p=jfinancials-war.git Continued: - rewrote to .equals() on an enum - rewrote user_profile_link.tpl (better style) - added missing i18n string - added missing navigation case Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java index ca8874f7..3dd30eb6 100644 --- a/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/login/UserLoginWebSessionBean.java @@ -182,6 +182,6 @@ public class UserLoginWebSessionBean implements UserLoginWebSessionController { } // Check logged-in first, then invisibility - return ((Objects.equals(this.getLoggedInUser().getUserProfileMode(), ProfileMode.INVISIBLE))); + return this.getLoggedInUser().getUserProfileMode().equals(ProfileMode.INVISIBLE); } } diff --git a/src/java/org/mxchange/localization/bundle_de_DE.properties b/src/java/org/mxchange/localization/bundle_de_DE.properties index e5935a8f..82562c28 100644 --- a/src/java/org/mxchange/localization/bundle_de_DE.properties +++ b/src/java/org/mxchange/localization/bundle_de_DE.properties @@ -265,3 +265,4 @@ LOGIN_NO_PASSWORD_MESSAGE=Sie haben kein Passwort eingegeben. LOGIN_NO_USER_NAME_MESSAGE=Sie haben keinen Benutzernamen eingegeben. USER_NOT_LOGGED_IN=Sie sind nicht angemeldet. LOGIN_OWN_PROFILE_INVISIBLE=Ihr Profil ist auf "durchsichtig" gestellt. +ERROR_USER_INSTANCE_NOT_SET=Fehler: Benutzer-Instanz nicht gesetzt. diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 1bbe0411..8d1678c3 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -260,3 +260,4 @@ LOGIN_NO_PASSWORD_MESSAGE=You have entered no password. LOGIN_NO_USER_NAME_MESSAGE=You have entered no user name. USER_NOT_LOGGED_IN=You are not signed in. LOGIN_OWN_PROFILE_INVISIBLE=Your profile is set to "invisible". +ERROR_USER_INSTANCE_NOT_SET=Error: User instance not set. diff --git a/web/WEB-INF/faces-config.xml b/web/WEB-INF/faces-config.xml index 74bb3322..969fbf47 100644 --- a/web/WEB-INF/faces-config.xml +++ b/web/WEB-INF/faces-config.xml @@ -166,4 +166,11 @@ /login/login_start_sharing_addressbook.xhtml + + /login/login_shared_addressbooks.xhtml + + user_show_addressbook + /user/show_addressbook.xhtml + + diff --git a/web/WEB-INF/templates/generic/user_profile_link.tpl b/web/WEB-INF/templates/generic/user_profile_link.tpl index 617a0496..0825e2a3 100644 --- a/web/WEB-INF/templates/generic/user_profile_link.tpl +++ b/web/WEB-INF/templates/generic/user_profile_link.tpl @@ -7,7 +7,11 @@ xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"> - + + + + + @@ -15,7 +19,7 @@ - #{msg.USER_PROFILE_NOT_PUBLICLY_VISIBLE} +