From 252b2997ba7e6bd0cb3d753d1e490432955d995a Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Tue, 30 May 2023 10:02:00 +0300 Subject: [PATCH 1/3] refactored comments --- app/templates/book/delete_comment_modal.html | 6 +- app/templates/book/edit_comment_modal.html | 6 +- app/templates/book/qa_view.html | 19 +-- app/views/book/comment.py | 124 +++++-------------- 4 files changed, 36 insertions(+), 119 deletions(-) diff --git a/app/templates/book/delete_comment_modal.html b/app/templates/book/delete_comment_modal.html index e91abc9..b2f0886 100644 --- a/app/templates/book/delete_comment_modal.html +++ b/app/templates/book/delete_comment_modal.html @@ -3,11 +3,7 @@
{{ form_hidden_tag() }} diff --git a/app/templates/book/edit_comment_modal.html b/app/templates/book/edit_comment_modal.html index 6faca52..72bf071 100644 --- a/app/templates/book/edit_comment_modal.html +++ b/app/templates/book/edit_comment_modal.html @@ -3,11 +3,7 @@
{{ form_hidden_tag() }} diff --git a/app/templates/book/qa_view.html b/app/templates/book/qa_view.html index a6ff49d..bb70b7e 100644 --- a/app/templates/book/qa_view.html +++ b/app/templates/book/qa_view.html @@ -40,18 +40,7 @@ {% endif %} {% if current_user.is_authenticated %} {{ form_hidden_tag() }} @@ -237,11 +226,7 @@