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