{% set premoder = mb_strtolower(comment.premoder) %}
{% set show_panel = 0 %}
{# Является ли пользователь автором комментария #}
{% if atm_user.id != 0 and atm_user == comment.user_id %}
{% set is_owner = 1 %}
{% else %}
{% set is_owner = 0 %}
{% endif %}
{# Премодерация комментария #}
{% if checkAccess(['__other__', 'can_premoder']) and (premoder=='nochecked' or premoder=='rejected') %}
{% if premoder=='nochecked' %}
{% endif %}
{% endif %}
{# Редактирование #}
{% if checkAccess([module, 'edit_materials']) or is_owner and checkAccess([module, 'edit_my_comments']) and (config(['raw_time_mess']) == 0 or comment.raw_time_mess) %}
{% set show_panel = 1 %}
{% endif %}
{# Удаление #}
{% if checkAccess([module, 'delete_materials']) or is_owner and checkAccess([module, 'delete_my_comments']) and (config(['raw_time_mess']) == 0 or comment.raw_time_mess) %}
{% set show_panel = 1 %}
{% endif %}
{# IP оставившего комментарий #}
{% if show_panel %}
{% endif %}
{% if show_panel and comment.raw_time_mess %}
Осталось {{ comment.raw_time_mess }} сек.
{% endif %}