@(gist: gitbucket.gist.model.Gist, comments: Seq[gitbucket.gist.model.GistComment], hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @comments.map { comment =>
@helpers.avatar(comment.commentedUserName, 20) @helpers.user(comment.commentedUserName, styleClass="username strong") commented @gitbucket.core.helper.html.datetimeago(comment.registeredDate) @if((hasWritePermission || context.loginAccount.map(_.userName == comment.commentedUserName).getOrElse(false))){   }
@helpers.markdown(comment.content, repository, false, true, true, hasWritePermission)
}