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
Feature/26194
Massimiliano Assante 7 years ago
parent 0fb1e79efd
commit 9cf2f11361

@ -5,6 +5,9 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="gcube-widgets-2.2.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gcube-widgets/gcube-widgets">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
<property name="context-root" value="news-feed"/>
</wb-module>

@ -1,10 +1,14 @@
<ReleaseNotes>
<Changeset component="org.gcube.portlets-user.news-feed.2-3-0"
date="2017-02-20">
<Change>fixes for changes to the underneath common-notification-library</Change>
<Change>fixes for changes to the underneath
common-notification-library</Change>
<Change>Minor css fix </Change>
<Change>Refactored to the new version of elastic search client's
compliancy</Change>
compliancy
</Change>
<Change>Feature #7212, do not apologies if no posts are present and
try to engage the user to post something.</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.news-feed.2-2-0"
date="2016-12-02">

@ -875,11 +875,11 @@ public class NewsFeedPanel extends Composite {
if (feeds.size() == 0) {
if (!isInfrastructure) {
newsPanel.add(new HTML("<div class=\"nofeed-message\">" +
"Sorry, looks like nobody shared anything yet. <br> " +
"You may begin by sharing a news!</div>"));
"Looks like nobody posted anything yet. Are you willing to be the first?<br> " +
"You may begin by posting a message!</div>"));
} else {
newsPanel.add(new HTML("<div class=\"nofeed-message\">" +
"Sorry, looks like we've got nothing for you at the moment. <br> " +
"Looks like we've got nothing for you at the moment. <br> " +
"You may begin by joining some of the available " +
"<br>"+vreLabel+"s.</div>"));
}

Loading…
Cancel
Save