@(q: lila.qa.Question, as: List[lila.qa.Answer])(implicit ctx: Context)
@as.size match { case 0 => { Be the first to answer! } case 1 => { One answer } case n => { @n Answers } }
@as.map { a =>
@views.html.qa.vote(routes.QaAnswer.vote(q.id, a.id).url, a.vote, true) @if(a.accepted) { } else { @if(lila.qa.QaAuth canEdit q) {
} }
Answered @momentFromNow(a.createdAt) by @userIdLink(userIdOption=a.userId.some, modIcon=a.displayModIcon) @if(lila.qa.QaAuth canEdit a) { Edit } @nope("Remove", routes.QaAnswer.remove(q.id, a.id), "q", "thin") @if(isGranted(_.ModerateQa)) {
Move to comment of @as.zipWithIndex.filterNot(_._1 == a).map { x => }
}
@richText(a.body)
@if(lila.qa.QaAuth canEdit a) {
}
@views.html.qa.commentList(q, a.comments.sorted, routes.QaComment.answer(q.id, a.id).url)
}