{% if user is not null %}
{{ user.name }} account_box
{% endif %}
Topics {% if userAccess.canManageUsers() %} Users {% endif %} {% if user is null %} Login {% else %} Logout {% endif %}
account_box {{ topic['author_name'] }}

{{ topic['name'] }} {% if topicAccess.canChange(topic['category_id'], topic['author_id']) %} edit {% endif %}

{% if images|length > 0 %}
{% for image in images %} {% endfor %}
{% endif %}
{{ topic['content'] }}
{% if comments|length > 0 %}
{{ topic['comments_count'] }} {{ topic['comments_count'] == 1 ? 'Comment' : 'Comments' }}
{% for comment in comments %}
account_box {{ comment['author_name'] }}
{% if comment['reply_to_content'] is not null %}
{{ comment['reply_to_content'] }}
{% endif %} {% if commentImages[comment['id']] is not null %}
{% for imageId in commentImages[comment['id']] %} {% endfor %}
{% endif %}
{{ comment['content'] }}
reply Reply {% if commentAccess.canChange(category['id'], comment['author_id']) %} edit Edit {% endif %} {% if commentAccess.canDelete(category['id'], comment['author_id']) %} delete Delete {% endif %}
{% endfor %}
{% if pages > 1 %} {% endif %}
{% endif %}
Add comment