@(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 @comments.comments.head.commitId.substring(0, 7)
@comments.diff.map(helpers.diff)
@comments.comments.map { comment => @gitbucket.core.helper.html.commitcomment(comment, hasWritePermission, repository, latestCommitId) }