{% include "package/snippets/flag-comment_asset.html" %} {% set content_type = content_type or 'dataset' %} {% set thread = h.get_comment_thread(pkg_name, content_type) %} {% set depth = 0 %} {% set notification_actions_enabled = userobj and h.ytp_comments_notification_recipients_enabled() %} {%- if h.user_can_manage_comments(content_type, pkg_id) -%} {% set unreplied_comments_x_days = h.ytp_comments_unreplied_comments_x_days(thread.url) %} {%- endif -%} {% if notification_actions_enabled %} {% include "package/snippets/follow-or-mute-comment_asset.html" %} {% set following_content_item, comments_following, comments_muted = h.user_comment_follow_mute_status(userobj.id, thread.id) %} {% endif %} {% macro comment_form(values={}, empty=False, hidden=True, prefix="", action="add", depth=0) %}
{% endmacro %} {% macro comment_thread(thread, content_type, depth=0) %} {% if thread.comments | length > 0 and notification_actions_enabled %} {% snippet "snippets/content_item_notification_actions.html", following=following_content_item, content_type=content_type, thread_id=thread.id %} {% endif %} {% for comment in thread.comments %}
{{ comment.subject }}
{% endif %} {% else %} {% snippet "snippets/comment_deleted.html", comment=comment, show_deleter=user_can_manage %} {% endif %} {% if comment.state != 'deleted' %}