@(comments: gitbucket.core.model.CommitComments, hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, latestCommitId: Option[String] = None)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers
@comments.fileName @if(!latestCommitId.contains(comments.comments.head.commitId)) { }
@comments.diff.map(helpers.diff)
@comments.comments.map { comment => @gitbucket.core.helper.html.commitcomment(comment, hasWritePermission, repository, latestCommitId) }
@if(!latestCommitId.contains(comments.comments.head.commitId)) {
}