@(thread: lila.message.Thread, form: Option[Form[_]], blocks: Boolean)(implicit ctx: Context, me: User) @message.layout( title = thread.name) {

@thread.nonEmptyName

@thread.posts.map { post =>
@userIdLink(thread.visibleSenderOf(post), none) @userIdLink(thread.visibleReceiverOf(post), "inline".some) - @momentFromNow(post.createdAt)
@richText(post.text)
}
@if(blocks) {

@userIdLink(thread.visibleOtherUserId(me).some) blocks you. You cannot answer.

} else { @if(!thread.isVisibleByOther(me) && !me.troll) {

@userIdLink(thread.visibleOtherUserId(me).some) has closed this thread. @if(!thread.asMod){ Create a new one }

} else { @form.map { f =>
@errMsg(f("text"))
@trans.cancel()
} } }
}