{% set canReply = not ctx.topic.isLocked and currentUser is not null and currentUser.hasPermission(permission("CREATE_OWN_POST")) %} {% set canEdit = currentUser is not null and ( ( ctx.topicAuthor is not null and currentUser.id == ctx.topicAuthor.id and ctx.topicAuthor.hasPermission(permission("EDIT_OWN_TOPIC")) ) or currentUser.hasPermission(permission("EDIT_OTHER_TOPIC")) ) %} {% set couldEditPost = currentUser is not null and ( currentUser.hasPermission(permission("EDIT_OWN_POST")) or currentUser.hasPermission(permission("EDIT_OTHER_POST")) ) %} {% set canDelete = currentUser is not null and ( ( ctx.topicAuthor is not null and currentUser.id == ctx.topicAuthor.id and ctx.topicAuthor.hasPermission(permission("DELETE_OWN_TOPIC")) ) or currentUser.hasPermission(permission("DELETE_OTHER_TOPIC")) ) %} {% set title = ctx.topic.title %} {% extends "base.twig" %} {% block content %} {% set formError = getAndClearFormError("updateTopic") %} {% if formError %} {% include "components/alert_error.twig" with { message: formError } %} {% endif %} {% set formError = getAndClearFormError("lockTopic") %} {% if formError %} {% include "components/alert_error.twig" with { message: formError } %} {% endif %} {% set formError = null %}
{{ __("This topic has been locked") }} |
{{ __("Log in to reply to this topic") }} |