@(q: lila.qa.Question, answers: List[lila.qa.Answer], popular: List[lila.qa.Question], related: List[lila.qa.Question], answerForm: Option[Form[_]], captcha: Option[lila.common.Captcha])(implicit ctx: Context) @side = { @if(!related.isEmpty){@relatedBox(related)} @popularBox(popular) } @layout( title = s"${q.title} • ${trans.questionsAndAnswers()}", side = side.some, openGraph = lila.app.ui.OpenGraph( title = q.title, url = s"$netBaseUrl${routes.QaQuestion.show(q.id, q.slug).url}", description = shorten(q.body, 152)).some) {
Only registered members with one week of lichess activity can contribute to the Q&A.
} else { @(answerForm, captcha) match { case (Some(form), Some(captcha)) => {Your answer
}@q.locked.map { l => @userIdLink(l.by.some) locked this question @momentFromNow(l.at) }.getOrElse { You cannot answer this question. }
} } }