From 5db0ea019550165ff61a1096d438d8d187834b3f Mon Sep 17 00:00:00 2001 From: SvyatoslavArtymovych Date: Mon, 19 Jun 2023 17:22:49 +0300 Subject: [PATCH] issued interpretation-page changes #179 --- .../book/modals/delete_comment_modal.html | 2 +- app/templates/book/qa_view.html | 66 +++++++++---------- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/app/templates/book/modals/delete_comment_modal.html b/app/templates/book/modals/delete_comment_modal.html index b2f0886..3971e03 100644 --- a/app/templates/book/modals/delete_comment_modal.html +++ b/app/templates/book/modals/delete_comment_modal.html @@ -14,7 +14,7 @@
- +
diff --git a/app/templates/book/qa_view.html b/app/templates/book/qa_view.html index 52c5412..20ded08 100644 --- a/app/templates/book/qa_view.html +++ b/app/templates/book/qa_view.html @@ -15,7 +15,7 @@
-

+

{{ section.label }}

@@ -23,8 +23,12 @@
+
+ Comments +
+ {% if not interpretation.copy_of %} -
+
{% if not current_user.is_authenticated %}
{{ form_hidden_tag() }}
-
@@ -77,14 +76,11 @@ {% set access_to_approve_comment = has_permission(section, Access.A, EntityType.COMMENT) %} -
- Comments: -
{% for comment in interpretation.comments if not comment.is_deleted and not comment.parent_id %} -
-
-
+
+
+
@@ -164,7 +160,7 @@
-
+
{% for child in comment.children if not child.is_deleted %} -
+
{{display_inline_elements(child.text)|safe}}
- +
by @@ -191,36 +187,36 @@ {{child.created_at.strftime('%B %d, %Y')}}
+ {% if child.user_id == current_user.id %} +
+ + +
+ {% endif %}
- {% if child.user_id == current_user.id %} -
- - -
- {% endif %}
{% endfor %}