enabled the post alert to users of a VRE when posting in to a VRE and in the settings

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/notifications@92659 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-03-04 23:39:11 +00:00
parent 562f3c9eeb
commit ec72a5dc7c
7 changed files with 12 additions and 7 deletions

View File

@ -76,6 +76,7 @@ public class SingleNotificationView extends Composite {
case LIKE:
case COMMENT:
case OWN_COMMENT:
case POST_ALERT:
goApp.setHTML("<a class=\"link\" href=\""+toShow.getUri()+"\"> See this Post.</a>");
break;
case DOCUMENT_WORKFLOW_STEP_REQUEST_TASK:
@ -163,6 +164,8 @@ public class SingleNotificationView extends Composite {
return images.calendarEdit();
case CALENDAR_DELETED_EVENT:
return images.calendarDelete();
case POST_ALERT:
return images.postAlert();
default:
return images.generic();
}

View File

@ -4,6 +4,9 @@ import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
public interface NotificationImages extends ClientBundle {
@Source("post-alert.png")
ImageResource postAlert();
@Source("comment.png")
ImageResource comment();

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

View File

@ -19,7 +19,6 @@ div.portlet-content {
vertical-align: middle;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
@ -27,17 +26,14 @@ div.portlet-content {
user-select: none;
color: #3B5998;
background-color: transparent;
border-color: #3B5998;
padding: 8px 12px;
line-height: 1.33;
border-radius: 6px;
margin: 0 10px -20px 0;
margin: 0 0 -20px 0;
}
.notification-btn:hover {
border-color: #6E8CCC;
background-color: #6E8CCC;
color: #FFF;
opacity: 0.8;
text-decoration: underline;
}
a.link,a.link:active,a.link:visited {

View File

@ -18,6 +18,7 @@ COMMENT=Social Networking
MENTION=Social Networking
LIKE=Social Networking
MESSAGE=Social Networking
POST_ALERT=Social Networking
CALENDAR_ADDED_EVENT=Shared Calendars
CALENDAR_UPDATED_EVENT=Shared Calendars
CALENDAR_DELETED_EVENT=Shared Calendars

View File

@ -11,6 +11,7 @@ COMMENT=Someone replied too to a post you replied
MENTION=Someone mentioned you in a post
LIKE=Someone set favorite your post
MESSAGE=Someone sent you a message
POST_ALERT=Someone shared a news and would like everyone to be notified about it
DOCUMENT_WORKFLOW_EDIT=A document workflow you created was editeded
DOCUMENT_WORKFLOW_VIEW=A document workflow you created was viewed
DOCUMENT_WORKFLOW_STEP_REQUEST_TASK=Someone requested you to perform a task on his document workflow

View File

@ -11,6 +11,7 @@ COMMENT=Replies
MENTION=Mentions
LIKE=Favorites
MESSAGE=Messages
POST_ALERT=Post Alerts
CALENDAR_ADDED_EVENT=Added events
CALENDAR_UPDATED_EVENT=Edited events
CALENDAR_DELETED_EVENT=Deleted events