Commits

Micha Kops committed 81b726f

#10 fixed, release information added to the documentation

Comments (0)

Files changed (4)

 	<modelVersion>4.0.0</modelVersion>
 	<groupId>com.hascode.confluence.plugin</groupId>
 	<artifactId>social-comments-plugin</artifactId>
-	<version>0.9.5</version>
+	<version>0.9.6</version>
 	<name>Confluence Social Comments Plugin</name>
 	<description>Allows you to notify Confluence users by typing @username: in a comment</description>
 	<packaging>atlassian-plugin</packaging>

src/main/java/com/hascode/confluence/plugin/socialcomments/service/SocialNotificationServiceImpl.java

 		final SocialCommentsConfiguration config = configService.load();
 		final String url = settingsManager.getGlobalSettings().getBaseUrl() + comment.getUrlPath();
 		final String userName = user.getFullName();
+		final String content = comment.getContent();
 
 		String body = config.getNotificationText();
 		body = body.replaceAll("#name#", userName);
 		body = body.replaceAll("#url#", url);
+		body = body.replaceAll("#content#", content);
 		return body;
 	}
 

src/main/resources/com/hascode/confluence/plugin/socialcomments/messages.properties

 socialcomments.msg.subject=E-Mail Subject
 socialcomments.msg.subject.example=e.g. Social Comment Notification Received
 socialcomments.msg.notification=Notification Text
-socialcomments.msg.notification.hint=The following placeholders are allowed: #name# #url#
+socialcomments.msg.notification.hint=The following placeholders are allowed: #name# #url# #content#
 socialcomments.msg.notification.example=e.g. Dear #name#, someone wanted you to receive this notification for the following wiki comment: #url#
 socialcomments.msg.from.email=Sender's E-Mail Address
 socialcomments.msg.from.email.example=e.g. admin@host.com

src/site/site.xml

       <item name="Download" href="download.html"/>
       <item name="Screenshots" href="screenshots.html"/>
       <item name="FAQs" href="faq.html" />
+      <item name="Releases" href="releases.html" />
     </menu>
 
     <menu ref="reports"/>