{% extends 'base.html' %} {% block title %}{{ section.label[:32] }}{% endblock %} {% block content %} {% if current_user.is_authenticated %} {% include 'book/modals/delete_comment_modal.html' %} {% include 'book/modals/edit_comment_modal.html' %} {% block right_sidebar %} {% endblock %} {% endif %} {% include 'book/breadcrumbs_navigation.html'%}

{{ section.label }}

{{display_inline_elements(interpretation.text)|safe}}
Comments
{% if not interpretation.copy_of %}
{% if not current_user.is_authenticated %}

Connect you wallet to start contributing!

{% endif %} {% if current_user.is_authenticated %}
{{ form_hidden_tag() }}
{% endif %}
{% set access_to_delete_comment = has_permission(section, Access.D, EntityType.COMMENT) %} {% set access_to_approve_comment = has_permission(section, Access.A, EntityType.COMMENT) %} {% for comment in interpretation.comments if not comment.is_deleted and not comment.parent_id %}
{{ comment.vote_count }}
{% if access_to_approve_comment %}
{% endif %}

{{ display_inline_elements(comment.text)|safe }}

Commented by {{comment.user.username}} on {{comment.created_at.strftime('%B %d, %Y')}} {% if comment.edited %} edited {% endif %}
{% if comment.user_id == current_user.id %}
{% endif %} {% if comment.user_id == current_user.id or access_to_delete_comment %}
{% endif %}
{% for child in comment.children if not child.is_deleted %}
{{display_inline_elements(child.text)|safe}}
by {{child.user.username}} {{child.created_at.strftime('%B %d, %Y')}}
{% if child.user_id == current_user.id %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}