{% set canModThis = isAdmin or (currentUser and is_mod_for_board(currentUser.user_id, thread.board_id)) %}
{% if thread.is_sticky %}{{ t('thread_angepinnt') }}{% endif %} {% if thread.is_closed %}{{ t('thread_geschlossen') }}{% endif %} {% if thread.deleted_at %}{{ t('thread_im_papierkorb') }}{% endif %} {{ thread.title }} {% if canModThis %}
{% if not thread.is_sticky %} {{ t('thread_anpinnen') }} {% else %} {{ t('thread_losloesen') }} {% endif %} {% if not thread.is_closed %} {{ t('thread_schliessen') }} {% else %} {{ t('thread_oeffnen') }} {% endif %} {% if moveBoards %}
{% endif %}
{% if thread.deleted_at %} {{ t('thread_thema_wiederherstellen') }} {{ t('thread_endgueltig_loeschen') }} {% else %} {{ t('thread_thema_loeschen') }} {% endif %}
{% endif %} {% if currentUser %} {% if isSubscribed %} {{ t('subscribed') }} {% else %} {{ t('subscribe') }} {% endif %} {% endif %}
{% if threadTags %}
{% for tg in threadTags %} {{ render_tag_chip(tg)|raw }} {% endfor %}
{% endif %} {% if poll %}

{{ poll.question }}

{% if currentUser and not hasVoted and (not poll.expires_at or strtotime(poll.expires_at) > time()) %}
{% for opt in poll.options %} {% endfor %}
{% else %} {% for opt in poll.options %} {% set pct = poll.total_votes > 0 ? round(opt.vote_count / poll.total_votes * 100) : 0 %}
{{ opt.text }} {{ opt.vote_count }} {{ t('votes') }} ({{ pct }}%)
{% endfor %}

{{ poll.total_votes }} {{ t('votes') }} insgesamt

{% endif %}
{% endif %} {{ pagination|raw }} {{ threadTopHtml|raw }} {% for post in posts %}
{% if not post.is_approved %}
{{ t('thread_dieser_beitrag_wartet_auf') }}
{% endif %}
{{ format_date(post.created_at) }} #{{ pag.offset + loop.index0 + 1 }}
{{ post.username }}
{{ online_dot(post)|raw }} {{ zeigename(post.username) }}
{% if post.is_owner %}
{{ t('thread_owner') }}
{% elseif post.is_banned %}
{{ t('thread_gesperrt') }}
{% elseif post.is_admin %}
{{ t('thread_admin') }}
{% elseif post.is_mod %}
{{ t('thread_mod') }}
{% elseif post.ohne_rang %} {# Nichts. Die Gruppe unten tritt an die Stelle des Rangs — so wie bei Admins und Moderatoren ihr Abzeichen. Fuer ein Konto, das nicht mitschreibt sondern ankuendigt, sagt "Neuling" nichts. #} {% else %} {{ rank_badge(post.rank, post.post_count)|raw }} {% endif %} {% for gruppe in post.gruppen %}
{{ gruppe }}
{% endfor %}
{{ t('thread_beitraege_zahl', post.post_count) }}
{% if post.deleted_at %}

{{ t('thread_im_papierkorb') }}{% if post.geloescht_von %} · {{ t('thread_geloescht_von', post.geloescht_von) }}{% endif %} · {{ post.deleted_at }} — {{ t('thread_nur_moderation_sichtbar') }}

{% endif %}
{{ bbcode(post.content, post.post_id)|raw }}
{% if post.attachments %}
{{ t('attachments') }} ({{ count(post.attachments) }})
{% for att in post.attachments %} {% if att.is_image %} {{ att.original_name }} {% else %} {{ att.original_name }} ({{ format_filesize(att.size_bytes) }}) {% endif %} {% endfor %}
{% endif %} {% if post.signature %}
– {{ bbcode(post.signature)|raw }}
{% endif %} {% if post.edited_at %}
Bearbeitet: {{ format_date(post.edited_at) }}
{% endif %} {% if post.mod_edited_by and post.mod_editor_name %}
{{ t('thread_bearbeitet_von_moderator', post.mod_editor_name) }} {% if post.mod_edited_at %} {{ t('thread_am_datum', format_date(post.mod_edited_at)) }} {% endif %} {% if post.mod_edit_reason %}
Grund: {{ post.mod_edit_reason }}
{% endif %}
{% endif %}
{% for r in post.reactions %} {% endfor %} {% if currentUser %} {% endif %}
{% if canModThis and post.author_ip and get_setting('show_ips_to_mods', '1') == '1' %} {{ post.author_ip }} {% endif %} {# Der Platzhalter schiebt die Aktionen nach rechts. Er steht IMMER da, auch ohne IP davor: sonst rutschen die Knoepfe bei Beitraegen ohne Adresse nach links und die Fusszeile sieht von Beitrag zu Beitrag anders aus. Beitraege ohne Adresse gibt es seit 1.2.4 regelmaessig — alles, was nicht aus einem Browser kommt. #} {% if currentUser %} {{ t('quote') }} {% endif %} {% if currentUser and currentUser.user_id != post.user_id %} {{ t('thread_melden') }} {% endif %} {% set editCount = post_edit_count(post.post_id) %} {% set canSeeHistory = canModThis or (currentUser and currentUser.user_id == post.user_id) %} {% if editCount > 0 and canSeeHistory %} Verlauf ({{ editCount }}) {% endif %} {% if currentUser and (canModThis or (currentUser.user_id == post.user_id and darfBearbeiten)) %} {{ t('edit') }} {% endif %} {% if canModThis %} {% if post.deleted_at %} {{ t('thread_wiederherstellen') }} {{ t('thread_endgueltig_loeschen') }} {% else %} {{ t('delete') }} {{ t('thread_ab_hier_abtrennen') }} {% endif %} {% endif %}
{{ post.hookFooter|raw }}
{% endfor %} {{ pagination|raw }} {% if currentUser and not thread.is_closed and darfSchreiben %}

{{ t('reply') }}

{{ render_editor('content', 'content', '', t('thread_platzhalter'), true, false)|raw }}
{% if darfAnhang %}
{% endif %}
{% elseif thread.is_closed %}

{{ t('thread_dieser_thread_ist_geschlossen') }}

{% elseif currentUser and not darfSchreiben %}
{{ t('thread_in_diesem_forum_darfst') }}
{% elseif not currentUser %}

{{ t('thread_anmelden_um_zu_antworten') }}

{% endif %}