{% macro comments_input(category, user, perms, reply_to) %} {% set reply_mode = reply_to is not null %} {% from '_layout/input.twig' import input_hidden, input_csrf, input_checkbox %}
{% endmacro %} {% macro comments_entry(comment, indent, category, user, perms) %} {% from '_layout/input.twig' import input_checkbox_raw %} {% set is_deleted = comment.comment_deleted is not null %} {% set hide_details = is_deleted and not perms.can_delete_any %} {% if perms.can_delete_any or (not is_deleted or comment.comment_replies|length > 0) %} {% set is_pinned = comment.comment_pinned is not null %}