{{ _('Dataset') }}

{{ pkg_dict.title }}

{{ _('Resource') }}

{{ resource.name }}

{{ _('Comments') }}

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


{{ _('Comment') }}

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

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



{% endif %} {% if not cookie or not (h.is_disabled_repeat_post_on_resource(pkg_dict.owner_org)) %} {% if h.is_enabled_rating(pkg_dict.owner_org) %} {{ _('Rating') }} {% for i in range(5) %} {% endfor %}
{% endif %}
{% for category in categories %} {% endfor %}

0/1000

{{ _('Please check before sending') }}

{{ _('Comment Policy') }}

  • {{ _('Constructive criticism') }}: {{ _('When seeking improvements, provide constructive and specific criticism. Including alternative suggestions or problem-solving proposals can lead to improvements that meet the needs.') }}
  • {{ _('Respect Privacy and Ethics') }}: {{ _('When posting comments, remember to protect personal information and consider ethical implications.') }}
  • {{ _('Positive Feedback') }}: {{ _('Positive comments contribute more to the motivation of data providers and provide valuable deta than aggressive negative comments.') }}


{% else %}

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

{% endif %}
{% if page.collection|length %}
{% endif %} {% for comment in page.collection %} {% set replies = h.get_comment_replies_for_display(comment.id, resource.package.owner_org) %}
{% if not comment.approval %} ({{ _('Unapproved') }}) {% endif %} {% if comment.category %} {{ h.create_category_icon(comment.category.value) | safe }} {{ _(comment.category.value) }} {% endif %} {% if h.is_enabled_rating(pkg_dict.owner_org) %} {% if comment.rating %} {% for i in range(comment.rating) %} {% endfor %} {% for i in range(5 - comment.rating) %} {% endfor %} {% endif %} {% endif %} {{ h.render_datetime(comment.created, with_hours=True) }} {% if comment.reactions %} {% set resource_comment_component = h.CommentComponent(comment.id) %} {{ resource_comment_component.create_status_badge(comment.reactions.response_status.value) | safe }} {% if comment.reactions.admin_liked %}
{{ _('Highly rated by organization administrators') }}
{% endif %} {% endif %}
{% if c.userobj and (c.userobj.sysadmin or h.has_organization_admin_role(resource.package.owner_org)) %} {% endif %} {% set reply_open = h.is_resource_reply_open(resource.package.owner_org) %} {% if comment.approval and (reply_open or (c.userobj and c.userobj.sysadmin) or h.has_organization_admin_role(resource.package.owner_org)) %} {% endif %} {% if c.userobj and (c.userobj.sysadmin or h.has_organization_admin_role(resource.package.owner_org)) and not comment.approval %}
{% endif %}
{% if comment.content %}
{{ comment.content }}
{% endif %} {% if comment.attached_image_filename %} {% endif %} {% if replies and replies|length %}
{% if replies|length > 3 %}
{% else %} {% for reply in replies %}
{% set is_admin_reply = h.user_has_organization_admin_role(reply.creator_user_id, resource.package.owner_org) %} {% if is_admin_reply %} {% endif %} {% if is_admin_reply %} {{ _('Reply from the Administrator') }} {% else %} {{ _('Reply') }} {% endif %} {% if not reply.approval %} ({{ _('Unapproved') }}) {% endif %} {{ h.render_datetime(reply.created, with_hours=True) }} {% if c.userobj and (c.userobj.sysadmin or h.has_organization_admin_role(resource.package.owner_org)) %}
{% if not reply.approval %}
{% endif %}
{% endif %}
{{ reply.content }}
{% if reply.attached_image_filename %} {% endif %}
{% if not loop.last %}
{% endif %} {% endfor %} {% endif %}
{% endif %}

{% endfor %} {% block page_pagination %} {{ page.pager(resource_id=resource.id) }} {% endblock %}