{{ _('Dataset') }}

{{ pkg_dict.name }}

{{ _('Resource') }}

{{ resource.name }}

{{ _('Comments') }}

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


{{ _('Comment') }}

{% if not cookie or not h.is_disabled_repeated_post_on_resource() %} {{ _('Rating') }} {% for i in range(5) %} rating star {% endfor %}



{% if h.is_disabled_repeated_post_on_resource() %}

{{ _('(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 %} {% if comment.approval %} {% if not reply %} {% else %} {% endif %} {% else %}
{% endif %} {% endif %}

{{ created }} {{ _(comment.category.value) if comment.category }} {% if comment.rating %} {% for i in range(comment.rating) %} rating star {% endfor %} {% for i in range(5 - comment.rating) %} empty rating star {% endfor %} {% 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 %}