{% extends 'master.twig' %} {% set forumBackLink = route('forums.forum', forum.id) %} {% set title = topic is defined ? topic.title : 'Creating topic in ' ~ forum.name %} {% if topic is defined %} {% if forum.perms.reply and ( topic.status != 1 or forum.perms.changeStatus ) %} {% set forumReplyLink %}#reply{% endset %} {% endif %} {% if forum.perms.changeType or forum.perms.changeStatus or forum.perms.topicMove or forum.perms.deleteAny %} {% set showMod = true %} {% endif %} {% if forum.perms.changeType %} {% set forumSticky = topic.type == 1 ? true : false %} {% set forumAnnounce = topic.type == 2 ? true : false %} {% endif %} {% if forum.perms.changeStatus %} {% set forumLock = topic.status == 1 ? true : false %} {% endif %} {% if forum.perms.topicMove %} {% set forumMove = true %} {% if topic.oldForum %} {% set forumRestore = true %} {% endif %} {% if topic.forum != config('forum.trash') %} {% set forumTrash = true %} {% endif %} {% endif %} {% if forum.perms.deleteAny %} {% if topic.forum == config('forum.trash') %} {% set forumPrune = true %} {% endif %} {% endif %} {% set posts = topic.posts|batch(10) %} {% set paginationPages = posts %} {% set paginationUrl = route('forums.topic', topic.id) %} {% endif %} {% block js %} {% endblock %} {% block content %}
{{ forum.name }} / {{ topic.title|default(null) }}
{% include 'forum/elements/forumBtns.twig' %}
{% if topic is defined %} {% set postingAction = route('forums.topic.reply', topic.id) %} {% for post in posts[get.page|default(1) - 1] %}
{% if post.poster.activated or post.poster.restricted %} {{ post.poster.username }}
{{ post.poster.title }}
Tenshi {{ post.poster.country }} {% if post.poster.id == (topic.posts|first).poster.id %} OP {% endif %} {% else %} deleted user {% endif %}
{% if user.isActive %}
{% if (user.id == post.poster.id and forum.perms.edit) or forum.perms.editAny %} {% endif %} {% if (user.id == post.poster.id and forum.perms.delete) or forum.perms.deleteAny %} {% endif %} {% if not (post.poster.activated or post.poster.restricted or user.id == post.poster.id) %} {% endif %}
{% endif %}
{{ post.parsed|raw }}
{% if post.poster.signature and post.poster.perms.changeSignature %}
{{ post.poster.signature|raw|nl2br }}
{% endif %}
{% endfor %} {% else %} {% set postingAction = route('forums.new', forum.id) %} {% endif %} {% if forumReplyLink is defined or topic is not defined %} {% endif %}
{% if forumReplyLink is defined or topic is not defined %} {% include 'forum/elements/replyForm.twig' %} {% endif %} {% include 'forum/elements/forumBtns.twig' %}
{% endblock %}