{% import "common_elements.html" as common_elements %} {% macro render_comment(comment, include_avatar, timestamp_links=False) %}
{% if include_avatar %} {% endif %}
{{ comment['author'] }}
{% if timestamp_links %} {{ common_elements.text_runs(comment['text'])|timestamps|safe }} {% else %} {{ common_elements.text_runs(comment['text']) }} {% endif %}
{% if settings.use_comments_js and comment['reply_count'] %}
{{ comment['view_replies_text'] }} Open in new tab
loading..
{% else %} {{ comment['view_replies_text'] }} {% endif %} {% if 'delete_url' is in comment %} Delete {% endif %}
{% endmacro %} {% macro video_comments(comments_info) %}
{% for comment in comments_info['comments'] %} {{ render_comment(comment, comments_info['include_avatars'], True) }} {% endfor %}
{% if 'more_comments_url' is in comments_info %} More comments {% endif %} {% endmacro %} {% macro comment_posting_box(info) %}
Add account
{% if info['include_video_id_input'] %} {% endif %}
{% endmacro %}