<xf:if is="$thread.canReply()">
<xf:form action="{{ link('threads/add-reply', $thread) }}"
ajax="true"
draft="{{ link('threads/draft', $thread) }}"
class="block js-quickReply"
data-xf-init="attachment-manager quick-reply{{ $xf.visitor.isShownCaptcha() ? ' guest-captcha' : '' }}"
data-message-container=".js-replyNewMessageContainer"
data-preview-url="{{ link('threads/reply-preview', $thread, {'quick_reply': 1}) }}">
<xf:js src="xf/message.js" min="1" />
<xf:set var="$lastPost" value="{$posts|last}" />
<div class="block-container">
<div class="block-body">
<xf:macro template="quick_reply_macros" name="body"
arg-message="{$thread.draft_reply.message}"
arg-attachmentData="{$attachmentData}"
arg-forceHash="{$thread.draft_reply.attachment_hash}"
arg-messageSelector=".js-post"
arg-multiQuoteHref="{{ link('threads/multi-quote', $thread) }}"
arg-multiQuoteStorageKey="multiQuoteThread"
arg-lastDate="{$lastPost.post_date}"
arg-lastKnownDate="{$thread.last_post_date}" />
</div>
</div>
</xf:form>
</xf:if>