Merge pull request #1501 from garbagetown/pr_add_permalink_to_issue_comment

add permalink to issue comments
This commit is contained in:
Naoki Takezoe
2017-03-18 01:36:05 +09:00
committed by GitHub

View File

@@ -46,7 +46,9 @@
} else {
referenced the @issueOrPullRequest()
}
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
<a href="@helpers.url(repository)/issues/@issue.get.issueId#comment-@comment.commentId">
@gitbucket.core.helper.html.datetimeago(comment.registeredDate)
</a>
</span>
@if(comment.action != "commit" && comment.action != "merge" && comment.action != "refer"
&& (isManageable || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){