{{ _('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) %}
{% 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 %} {% else %} {% endif %} {% else %} {% 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) %}
{% endfor %}
{% for i in range(5 - comment.rating) %}
{% endfor %}
{% endif %}
{% endif %}
{% if not comment.approval %}
{{ _('Unapproved') }}
{% endif %}
{% endfor %}
{{ reply.created.strftime('%Y/%m/%d %H:%M') }}
{{ reply.content }}
{% endif %}