set to always show the source vre of the post

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@100603 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-10-10 12:41:38 +00:00
parent 820076b008
commit c0514941fc
2 changed files with 5 additions and 2 deletions

View File

@ -166,12 +166,15 @@ public class TweetTemplate extends Composite {
Encoder.encode(GCubeSocialNetworking.USER_PROFILE_OID)+"="+
Encoder.encode(feed.getEntityId())+"\">"+feed.getFullName()+"</a> " + feedText);
this.vreSource.setVisible(true);
//show the vreid iff the info is present
if (showTimelineSource && feed.getVreid() != null && feed.getVreid().compareTo("") != 0) {
this.vreSource.setVisible(true);
String vreName = feed.getVreid().substring(feed.getVreid().lastIndexOf("/")+1);
vreSource.setHTML("<a class=\"link\" style=\"font-size: 10px; white-space: nowrap;\" href=\"/group/"+vreName.toLowerCase()+"\">[" +vreName + "]</a>");
} else {
vreSource.setHTML("[multiple]");
}
//check if the user has his own avatar
if (feed.getThumbnailURL().endsWith("img_id=0") || !feed.getThumbnailURL().contains("?")) { //it means no avatar is set
avatarImage.setVisible(false);

View File

@ -1,4 +1,4 @@
# Defines the News Feed refreshing time in minutes
REFRESH_TIME = 3
VRE_LABEL = Virtual Research Environment
SHOW_TIMELINE_SOURCE=false
SHOW_TIMELINE_SOURCE=true