add permalink to issue comment

This commit is contained in:
garbagetown
2017-03-18 01:06:52 +09:00
parent faa8f8aade
commit a2e150817c

View File

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