<xen:set var="$threadStatusHtml">
<xen:if hascontent="true">
<dl class="threadAlerts secondaryContent">
<dt>{xen:phrase thread_status}:</dt>
<xen:contentcheck>
<xen:if is="{$thread.discussion_state} == 'deleted'">
<dd class="deletedAlert">
<span class="icon Tooltip" title="{xen:phrase deleted}" data-tipclass="iconTip"></span>
{xen:phrase removed_from_public_view}</dd>
<xen:elseif is="{$thread.discussion_state} == 'moderated'" />
<dd class="moderatedAlert">
<span class="icon Tooltip" title="{xen:phrase awaiting_moderation}" data-tipclass="iconTip"></span>
{xen:phrase awaiting_moderation_before_being_displayed_publicly}</dd>
</xen:if>
<xen:if is="!{$thread.discussion_open}">
<dd class="lockedAlert">
<span class="icon Tooltip" title="{xen:phrase locked}" data-tipclass="iconTip"></span>
{xen:phrase not_open_for_further_replies}</dd>
</xen:if>
</xen:contentcheck>
</dl>
</xen:if>
</xen:set>
{xen:raw $threadStatusHtml}