added attachment notice

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@119787 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2015-10-15 10:09:30 +00:00
parent 1ef768a7de
commit c5f4f94296
1 changed files with 4 additions and 3 deletions

View File

@ -433,10 +433,11 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
if (otherRecipientsFullNames != null && otherRecipientsFullNames.length > 0) {
otherRecipientNames = "<br/><div> - This message was also sent to: <ul>";
for (int i = 0; i < otherRecipientsFullNames.length; i++) {
otherRecipientNames += "<li> " + otherRecipientsFullNames[i] + "</li>";
otherRecipientNames += "<li> " + otherRecipientsFullNames[i] + " </li>";
}
otherRecipientNames += "</ul></div><div> If you reply, your message will be also delivered to them.</div>";
otherRecipientNames += "</ul></div><div>If you reply, your message will be also delivered to them.</div>";
}
String attachmentsNotice = "<div>Please note that email replies do not support attachments.</div>";
Notification not = new Notification(
UUID.randomUUID().toString(),
@ -448,7 +449,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
"sent you a message: "
+ "<br/><div style=\"margin-top: 10px; margin-bottom: 10px; margin-left: 50px; padding-left: 15px; border-left: 3px solid #ccc; font-style: italic;\">"
+ messageText +"</div>"
+ otherRecipientNames,
+ otherRecipientNames + attachmentsNotice,
false,
aslSession.getUsername(),
aslSession.getUserFullName(),