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:
parent
820076b008
commit
c0514941fc
|
@ -166,12 +166,15 @@ public class TweetTemplate extends Composite {
|
||||||
Encoder.encode(GCubeSocialNetworking.USER_PROFILE_OID)+"="+
|
Encoder.encode(GCubeSocialNetworking.USER_PROFILE_OID)+"="+
|
||||||
Encoder.encode(feed.getEntityId())+"\">"+feed.getFullName()+"</a> " + feedText);
|
Encoder.encode(feed.getEntityId())+"\">"+feed.getFullName()+"</a> " + feedText);
|
||||||
|
|
||||||
|
this.vreSource.setVisible(true);
|
||||||
//show the vreid iff the info is present
|
//show the vreid iff the info is present
|
||||||
if (showTimelineSource && feed.getVreid() != null && feed.getVreid().compareTo("") != 0) {
|
if (showTimelineSource && feed.getVreid() != null && feed.getVreid().compareTo("") != 0) {
|
||||||
this.vreSource.setVisible(true);
|
|
||||||
String vreName = feed.getVreid().substring(feed.getVreid().lastIndexOf("/")+1);
|
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>");
|
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
|
//check if the user has his own avatar
|
||||||
if (feed.getThumbnailURL().endsWith("img_id=0") || !feed.getThumbnailURL().contains("?")) { //it means no avatar is set
|
if (feed.getThumbnailURL().endsWith("img_id=0") || !feed.getThumbnailURL().contains("?")) { //it means no avatar is set
|
||||||
avatarImage.setVisible(false);
|
avatarImage.setVisible(false);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Defines the News Feed refreshing time in minutes
|
# Defines the News Feed refreshing time in minutes
|
||||||
REFRESH_TIME = 3
|
REFRESH_TIME = 3
|
||||||
VRE_LABEL = Virtual Research Environment
|
VRE_LABEL = Virtual Research Environment
|
||||||
SHOW_TIMELINE_SOURCE=false
|
SHOW_TIMELINE_SOURCE=true
|
Loading…
Reference in New Issue