@(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.renderMarkup( filePath = List("temporary.md"), fileContent = comment.content, branch = repository.repository.defaultBranch, repository = repository, enableWikiLink = false, enableRefsLink = true, enableAnchor = true, enableLineBreaks = true, enableTaskList = true, hasWritePermission = hasWritePermission )