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:
parent
562f3c9eeb
commit
ec72a5dc7c
|
@ -76,6 +76,7 @@ public class SingleNotificationView extends Composite {
|
||||||
case LIKE:
|
case LIKE:
|
||||||
case COMMENT:
|
case COMMENT:
|
||||||
case OWN_COMMENT:
|
case OWN_COMMENT:
|
||||||
|
case POST_ALERT:
|
||||||
goApp.setHTML("<a class=\"link\" href=\""+toShow.getUri()+"\"> See this Post.</a>");
|
goApp.setHTML("<a class=\"link\" href=\""+toShow.getUri()+"\"> See this Post.</a>");
|
||||||
break;
|
break;
|
||||||
case DOCUMENT_WORKFLOW_STEP_REQUEST_TASK:
|
case DOCUMENT_WORKFLOW_STEP_REQUEST_TASK:
|
||||||
|
@ -163,6 +164,8 @@ public class SingleNotificationView extends Composite {
|
||||||
return images.calendarEdit();
|
return images.calendarEdit();
|
||||||
case CALENDAR_DELETED_EVENT:
|
case CALENDAR_DELETED_EVENT:
|
||||||
return images.calendarDelete();
|
return images.calendarDelete();
|
||||||
|
case POST_ALERT:
|
||||||
|
return images.postAlert();
|
||||||
default:
|
default:
|
||||||
return images.generic();
|
return images.generic();
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,9 @@ import com.google.gwt.resources.client.ClientBundle;
|
||||||
import com.google.gwt.resources.client.ImageResource;
|
import com.google.gwt.resources.client.ImageResource;
|
||||||
|
|
||||||
public interface NotificationImages extends ClientBundle {
|
public interface NotificationImages extends ClientBundle {
|
||||||
|
@Source("post-alert.png")
|
||||||
|
ImageResource postAlert();
|
||||||
|
|
||||||
@Source("comment.png")
|
@Source("comment.png")
|
||||||
ImageResource comment();
|
ImageResource comment();
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 763 B |
|
@ -19,7 +19,6 @@ div.portlet-content {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
border: 1px solid transparent;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
|
@ -27,17 +26,14 @@ div.portlet-content {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
color: #3B5998;
|
color: #3B5998;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-color: #3B5998;
|
|
||||||
padding: 8px 12px;
|
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin: 0 10px -20px 0;
|
margin: 0 0 -20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-btn:hover {
|
.notification-btn:hover {
|
||||||
border-color: #6E8CCC;
|
opacity: 0.8;
|
||||||
background-color: #6E8CCC;
|
text-decoration: underline;
|
||||||
color: #FFF;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a.link,a.link:active,a.link:visited {
|
a.link,a.link:active,a.link:visited {
|
||||||
|
|
|
@ -18,6 +18,7 @@ COMMENT=Social Networking
|
||||||
MENTION=Social Networking
|
MENTION=Social Networking
|
||||||
LIKE=Social Networking
|
LIKE=Social Networking
|
||||||
MESSAGE=Social Networking
|
MESSAGE=Social Networking
|
||||||
|
POST_ALERT=Social Networking
|
||||||
CALENDAR_ADDED_EVENT=Shared Calendars
|
CALENDAR_ADDED_EVENT=Shared Calendars
|
||||||
CALENDAR_UPDATED_EVENT=Shared Calendars
|
CALENDAR_UPDATED_EVENT=Shared Calendars
|
||||||
CALENDAR_DELETED_EVENT=Shared Calendars
|
CALENDAR_DELETED_EVENT=Shared Calendars
|
|
@ -11,6 +11,7 @@ COMMENT=Someone replied too to a post you replied
|
||||||
MENTION=Someone mentioned you in a post
|
MENTION=Someone mentioned you in a post
|
||||||
LIKE=Someone set favorite your post
|
LIKE=Someone set favorite your post
|
||||||
MESSAGE=Someone sent you a message
|
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_EDIT=A document workflow you created was editeded
|
||||||
DOCUMENT_WORKFLOW_VIEW=A document workflow you created was viewed
|
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
|
DOCUMENT_WORKFLOW_STEP_REQUEST_TASK=Someone requested you to perform a task on his document workflow
|
||||||
|
|
|
@ -11,6 +11,7 @@ COMMENT=Replies
|
||||||
MENTION=Mentions
|
MENTION=Mentions
|
||||||
LIKE=Favorites
|
LIKE=Favorites
|
||||||
MESSAGE=Messages
|
MESSAGE=Messages
|
||||||
|
POST_ALERT=Post Alerts
|
||||||
CALENDAR_ADDED_EVENT=Added events
|
CALENDAR_ADDED_EVENT=Added events
|
||||||
CALENDAR_UPDATED_EVENT=Edited events
|
CALENDAR_UPDATED_EVENT=Edited events
|
||||||
CALENDAR_DELETED_EVENT=Deleted events
|
CALENDAR_DELETED_EVENT=Deleted events
|
||||||
|
|
Loading…
Reference in New Issue