{{ _('Dataset') }}

{{ pkg_dict.name }}

{{ _('Resource') }}

{{ resource.name }}

{{ _('Comments') }}

{{ h.get_resource_comments(resource.id) }}


{{ _('Comment') }}

{% if not cookie or not (h.is_disabled_repeat_post_on_resource_org(pkg_dict.owner_org)) %} {% if h.is_enabled_rating_org(pkg_dict.owner_org) %} {{ _('Rating') }} {% for i in range(5) %} rating star {% endfor %}
{% endif %}


{% if h.is_disabled_repeat_post_on_resource_org(pkg_dict.owner_org) %}

{{ _('(In order to prevent potential spam, only a single comment is allowed per data resouce)') }}

{% endif %}


{% else %}

{{ _('* You have already commented on this data resource') }}

{{ _('(In order to prevent potential spam, only a single comment is allowed per data resouce)') }}

{% endif %}
{% if comments|length %}
{% endif %} {% for comment in comments %} {% set created = comment.created.strftime('%Y/%m/%d %H:%M') %} {% set reply = h.get_comment_reply(comment.id) %} {% if c.userobj.sysadmin or h.has_organization_admin_role(resource.package.owner_org) %} {% if comment.approval %} {% if not reply %} {% if h.is_base_public_folder_bs3() %} {% else %} {% endif %} {% else %} {% endif %} {% else %}
{% if h.is_base_public_folder_bs3() %} {% else %} {% endif %}
{% endif %} {% endif %}

{{ created }} {% if comment.category %} {{ _(comment.category.value) }} {% endif %} {% if h.is_enabled_rating_org(pkg_dict.owner_org) %} {% if comment.rating %} {% for i in range(comment.rating) %} rating star {% endfor %} {% for i in range(5 - comment.rating) %} empty rating star {% endfor %} {% endif %} {% endif %} {% if not comment.approval %} {{ _('Unapproved') }} {% endif %}

{% if comment.content %}
{{ comment.content }}
{% endif %} {% if reply %}

{{ reply.created.strftime('%Y/%m/%d %H:%M') }}

{{ reply.content }}

{% endif %}

{% endfor %}