{% if comments[parent_id] %} {% for comment in comments[parent_id] %} {# Add an anchor link for this comment #}
▣ | {# Username #} {{ comment.username }} {% include 'vote.twig' with { target: 'comment', hash_id: comment.hashId, vote: votes[comment.id] is defined ? votes[comment.id].vote : null, vote_count: comment.vote, user: user is defined ? user : null } only %} {# DateTime #} {{ comment.created|ago }} — {# Reply #} Reply {# Edit #} {% if user and comment.userId == user.id %} Edit {% endif %} |
{{ comment.text|markdown|raw }} |