From 9cf2f1136115bde7e3d331848c0c4a72945ae53c Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 23 Feb 2017 11:44:26 +0000 Subject: [PATCH] Feature #7212 News Feed portlet: do not apologies if no posts are present and try to engage the user to post something. git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@144191 82a268e6-3cf1-43bd-a215-b396298e98cf --- .settings/org.eclipse.wst.common.component | 3 +++ distro/changelog.xml | 8 ++++++-- .../user/newsfeed/client/panels/NewsFeedPanel.java | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component index 3fad16f..18ea1db 100644 --- a/.settings/org.eclipse.wst.common.component +++ b/.settings/org.eclipse.wst.common.component @@ -5,6 +5,9 @@ + + uses + diff --git a/distro/changelog.xml b/distro/changelog.xml index 6b6201a..51f9f6e 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,10 +1,14 @@ - fixes for changes to the underneath common-notification-library + fixes for changes to the underneath + common-notification-library Minor css fix Refactored to the new version of elastic search client's - compliancy + compliancy + + Feature #7212, do not apologies if no posts are present and + try to engage the user to post something. diff --git a/src/main/java/org/gcube/portlets/user/newsfeed/client/panels/NewsFeedPanel.java b/src/main/java/org/gcube/portlets/user/newsfeed/client/panels/NewsFeedPanel.java index 2a0ab90..c7dcc08 100644 --- a/src/main/java/org/gcube/portlets/user/newsfeed/client/panels/NewsFeedPanel.java +++ b/src/main/java/org/gcube/portlets/user/newsfeed/client/panels/NewsFeedPanel.java @@ -875,11 +875,11 @@ public class NewsFeedPanel extends Composite { if (feeds.size() == 0) { if (!isInfrastructure) { newsPanel.add(new HTML("
" + - "Sorry, looks like nobody shared anything yet.
" + - "You may begin by sharing a news!
")); + "Looks like nobody posted anything yet. Are you willing to be the first?
" + + "You may begin by posting a message!")); } else { newsPanel.add(new HTML("
" + - "Sorry, looks like we've got nothing for you at the moment.
" + + "Looks like we've got nothing for you at the moment.
" + "You may begin by joining some of the available " + "
"+vreLabel+"s.
")); }