@(comment: gitbucket.core.model.CommitComment, hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo, latestCommitId: Option[String] = None)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core._ @import gitbucket.core.view.helpers._
@avatar(comment.commentedUserName, 48)
@user(comment.commentedUserName, styleClass="username strong") commented @if(comment.issueId.isDefined){ on this Pull Request } else { @if(comment.fileName.isDefined){ on @comment.fileName.get } in @comment.commitId.substring(0, 7) } @helper.html.datetimeago(comment.registeredDate) @if(hasWritePermission || loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){ }
@markdown(comment.content, repository, false, true, true, hasWritePermission)