{% set focus = updated_comment is not none and updated_comment.id == comment.id %} {% set can_update = h.check_access('datarequest_comment_update', {'id':comment.id }) %} {% if focus %} {% endif %}
{{ h.gravatar(comment.user.get('email_hash'), 48) }}
{% if h.check_access('datarequest_comment_delete', {'id':comment.id }) %}
{% set locale = h.dump_json({'content': _('Are you sure you want to delete this comment?')}) %}
{% endif %} {% if can_update %}
{% endif %}
{{ comment.user.get('display_name') }} {% trans %}commented{% endtrans %} {{ h.time_ago_from_timestamp(comment.time).lower() }}
{{ h.render_markdown(comment.comment|safe) }}
{% if can_update %} {% snippet "datarequests/snippets/comment_form.html", comment_id=comment.id, datarequest=datarequest, errors=errors, errors_summary=errors_summary, initial_text=updated_comment.comment if focus else comment.comment, focus=focus %} {% endif %}