


{% 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 %} {% 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 css %} {% endblock %} {% block js %} {% endblock %} {% block content %}