From f54bfd81c3f52aaf65f70eb7691e958d7ce13674 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 19 Oct 2015 13:30:07 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20rewrote=20to=20.equals()=20on?= =?utf8?q?=20an=20enum=20-=20rewrote=20user=5Fprofile=5Flink.tpl=20(better?= =?utf8?q?=20style)=20-=20added=20missing=20i18n=20string=20-=20added=20mi?= =?utf8?q?ssing=20navigation=20case=20Signed-off-by:Roland=20H=C3=A4der=20?= =?utf8?q??= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../addressbook/beans/login/UserLoginWebSessionBean.java | 2 +- .../org/mxchange/localization/bundle_de_DE.properties | 1 + .../org/mxchange/localization/bundle_en_US.properties | 1 + web/WEB-INF/faces-config.xml | 7 +++++++ web/WEB-INF/templates/generic/user_profile_link.tpl | 8 ++++++-- 5 files changed, 16 insertions(+), 3 deletions(-) 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} + -- 2.39.5