<xf:if contentcheck="true">
<div class="block-outer-opposite">
<div class="buttonGroup">
<xf:contentcheck>
<xf:if is="$canInlineMod">
<xf:macro template="inline_mod_macros" name="button" />
</xf:if>
<xf:if is="$thread.discussion_state == 'deleted' AND $thread.canUndelete()">
<xf:button href="{{ link('threads/undelete', $thread) }}" class="button--link" overlay="true">
{{ phrase('undelete') }}
</xf:button>
</xf:if>
<xf:if is="$thread.canApproveUnapprove() AND $thread.discussion_state == 'moderated'">
<xf:button href="{{ link('threads/approve', $thread) }}" class="button--link" overlay="true">
{{ phrase('approve') }}
</xf:button>
</xf:if>
<xf:if is="$xf.visitor.user_id AND $thread.isUnread()">
<xf:button href="{{ $firstUnread ? ('#post-' . $firstUnread.post_id) : link('threads/unread', $thread, {'new': 1}) }}"
class="button--link"
data-xf-click="scroll-to"
data-silent="true">
{{ phrase('jump_to_new') }}
</xf:button>
</xf:if>
<xf:if is="$thread.canWatch()">
<xf:button href="{{ link('threads/watch', $thread) }}" class="button--link"
data-xf-click="switch-overlay"
data-sk-watch="{{ phrase('watch') }}"
data-sk-unwatch="{{ phrase('unwatch') }}">
<xf:if is="{$thread.Watch.{$xf.visitor.user_id}}">
{{ phrase('unwatch') }}
<xf:else />
{{ phrase('watch') }}
</xf:if>
</xf:button>
</xf:if>
<xf:if contentcheck="true">
<div class="buttonGroup-buttonWrapper">
<xf:button class="button--link menuTrigger" data-xf-click="menu" aria-expanded="false" aria-haspopup="true" title="{{ phrase('more_options') }}">•••</xf:button>
<div class="menu" data-menu="menu" aria-hidden="true">
<div class="menu-content">
<h4 class="menu-header">{{ phrase('more_options') }}</h4>
<xf:contentcheck>
<!--[XF:thread_tools_menu:top]-->
<xf:if is="$thread.canEdit()">
<a href="{{ link('threads/edit', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('edit_thread') }}</a>
</xf:if>
<xf:if is="$thread.canLockUnlock()">
<a href="{{ link('threads/quick-close', $thread) }}"
class="menu-linkRow"
data-xf-click="switch"
data-menu-closer="true">
<xf:if is="$thread.discussion_open">
{{ phrase('lock_thread') }}
<xf:else />
{{ phrase('unlock_thread') }}
</xf:if>
</a>
</xf:if>
<xf:if is="$thread.canStickUnstick()">
<a href="{{ link('threads/quick-stick', $thread) }}"
class="menu-linkRow"
data-xf-click="switch"
data-menu-closer="true">
<xf:if is="$thread.sticky">
{{ phrase('unstick_thread') }}
<xf:else />
{{ phrase('stick_thread') }}
</xf:if>
</a>
</xf:if>
<xf:if is="$thread.canCreatePoll()">
<a href="{{ link('threads/poll/create', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('create_poll') }}</a>
</xf:if>
<xf:if is="$thread.canDelete('soft')">
<a href="{{ link('threads/delete', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('delete_thread') }}</a>
</xf:if>
<xf:if is="$thread.canMove()">
<a href="{{ link('threads/move', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('move_thread') }}</a>
</xf:if>
<xf:if is="$thread.canReplyBan()">
<a href="{{ link('threads/reply-bans', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('manage_reply_bans') }}</a>
</xf:if>
<xf:if is="$thread.canViewModeratorLogs()">
<a href="{{ link('threads/moderator-actions', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('moderator_actions') }}</a>
</xf:if>
<!--[XF:thread_tools_menu:before_footer]-->
<xf:if is="$thread.canUseInlineModeration()">
<div class="menu-footer"
data-xf-init="inline-mod"
data-type="thread"
data-href="{{ link('inline-mod') }}"
data-toggle=".js-threadInlineModToggle">
<xf:checkbox>
<xf:option class="js-threadInlineModToggle" value="{$thread.thread_id}">{{ phrase('select_for_moderation') }}</xf:option>
</xf:checkbox>
</div>
</xf:if>
<!--[XF:thread_tools_menu:bottom]-->
</xf:contentcheck>
</div>
</div>
</div>
</xf:if>
</xf:contentcheck>
</div>
</div>
</xf:if>