<!-- Zeigt eine wichtige Nachricht an, wenn der Thread noch auf Genehmigung wartet -->
<xf:if is="$pendingApproval">
<div class="blockMessage blockMessage--important">{{ phrase('content_submitted_displayed_pending_approval') }}</div>
</xf:if>
<!-- Zeigt eine Nachricht an, wenn der Thread ein Präfix hat -->
<xf:if is="$thread.prefix_id">
<xf:if contentcheck="true">
<div class="blockMessage blockMessage--alt blockMessage--small blockMessage--close">
<xf:contentcheck>{{ prefix_description('thread', $thread.prefix_id) }}</xf:contentcheck>
</div>
</xf:if>
</xf:if>
<!-- Optionen für die Forumsseite und die Brotkrümelnavigation -->
<xf:macro id="forum_macros::forum_page_options" arg-forum="{$forum}" arg-thread="{$thread}" />
<xf:breadcrumb source="$forum.getBreadcrumbs()" />
<!-- Lädt das Inline-Mod-Skript, wenn die Bedingungen erfüllt sind -->
<xf:if is="$canInlineMod OR $thread.canUseInlineModeration()">
<xf:js src="xf/inline_mod.js" min="1" />
</xf:if>
<!-- Erweiterungspunkt für Inhalte über den Nachrichten -->
<xf:extension id="above_messages"></xf:extension>
<xf:ad position="thread_view_above_messages" arg-thread="{$thread}" />
<xf:widgetpos id="thread_view_above_messages" context-thread="{$thread}" />
<!-- HTML für Thread-Aktionen wie Löschen, Bearbeiten, etc. -->
<xf:set var="$threadActionsHtml">
<xf:extension id="thread_actions">
<xf:if contentcheck="true">
<div class="block-outer-opposite">
<div class="buttonGroup">
<xf:contentcheck>
<xf:extension id="thread_action_buttons">
<xf:if is="$canInlineMod">
<xf:macro id="inline_mod_macros::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 AND $isSimpleDateDisplay) ? ('#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>
<!-- Menü mit Thread-Werkzeugen (z.B. Bearbeiten, Verschieben) -->
<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.canChangeType() AND count($creatableThreadTypes) > 1">
<a href="{{ link('threads/change-type', $thread) }}" data-xf-click="overlay" class="menu-linkRow">{{ phrase('change_thread_type') }}</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>
<!-- Weitere Optionen... -->
</xf:contentcheck>
</div>
</div>
</div>
</xf:if>
</xf:extension>
</xf:contentcheck>
</div>
</div>
</xf:if>
</xf:extension>
</xf:set>