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