{% set type = 'asset' %} {% include "snippets/comments-js_" ~ type ~ ".html" %} {% macro comment_form(values={}, empty=False, hidden=True, prefix="", action="add") %}
{% endmacro %} {% set content_type = content_type or 'dataset' %} {% set thread = h.get_comment_thread(pkg_name) %} {% macro comment_thread(thread) %}
{{ comment.subject }}
{% else %}{{ _('This comment was deleted.') }}
{% endif %}{{ h.render_datetime(comment.modified_date, "%d.%m.%Y %H:%M") }} {{ _('Modified') }} {% endif %}
{% if h.check_access('package_update', {'id': pkg_id }) %}- {{ _('Delete') }}
{% endif %}
{% if userobj and comment.user_id == userobj.id %}
- {{ _('Edit') }}
{{ comment_form(comment, prefix='edit_', action='edit') }}
{% endif %}
{% if userobj %}
- {{ _('Reply') }}
{{ comment_form(comment, empty=True, prefix='reply_', action='reply') }}
{% endif %}
{% endif %}