(refs #4)Record issue creation activity.

This commit is contained in:
takezoe
2013-07-06 20:14:49 +09:00
parent f84078c7ca
commit 342810aa3a
3 changed files with 12 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ object helpers {
def activityMessage(message: String)(implicit context: app.Context): Html = {
Html(message
.replaceAll("\\[\\[([^\\s]+?)/([^\\s]+?)#((\\d+))\\]\\]", "<a href=\"%s/$1/$2/issues/$3\">$1/$2#$3</a>".format(context.path))
.replaceAll("\\[\\[([^\\s]+?)/([^\\s]+?)\\]\\]", "<a href=\"%s/$1/$2\">$1/$2</a>".format(context.path))
.replaceAll("\\[\\[([^\\s]+?)\\]\\]", "<a href=\"%s/$1\">$1</a>".format(context.path))
)