@(comments: List[model.IssueComment], hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._ @comments.map { comment => @if(comment.action != "close" && comment.action != "reopen" && comment.action != "merge"){
@avatar(comment.commentedUserName, 48)
@comment.commentedUserName commented @datetime(comment.registeredDate) @if(comment.action != "commit" && (hasWritePermission || loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){ }
@markdown(comment.content, repository, false, true)
} @if(comment.action == "merge"){
Merged @avatar(comment.commentedUserName, 20) @comment.commentedUserName merged the pull request @datetime(comment.registeredDate)
} @if(comment.action == "close" || comment.action == "close_comment"){
Closed @avatar(comment.commentedUserName, 20) @comment.commentedUserName closed the issue @datetime(comment.registeredDate)
} @if(comment.action == "reopen" || comment.action == "reopen_comment"){
Reopened @avatar(comment.commentedUserName, 20) @comment.commentedUserName reopened the issue @datetime(comment.registeredDate)
} }