@(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.avatarLink(comment.commentedUserName, 20) @helpers.user(comment.commentedUserName, styleClass="username strong") @gitbucket.core.helper.html.datetimeago(comment.registeredDate) @if(hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false)){ }
@helpers.markdown( markdown = comment.content, repository = repository, branch = repository.repository.defaultBranch, enableWikiLink = false, enableRefsLink = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission )