From 196a59b3f480a8a895851ca922be647876fbdf25 Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Wed, 17 May 2023 16:05:52 +0300 Subject: [PATCH] fix 'many if' --- app/templates/book/qa_view.html | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/app/templates/book/qa_view.html b/app/templates/book/qa_view.html index 15de372..b2c092c 100644 --- a/app/templates/book/qa_view.html +++ b/app/templates/book/qa_view.html @@ -8,25 +8,14 @@ {% include 'book/delete_comment_modal.html' %} {% include 'book/edit_comment_modal.html' %} {% include 'book/edit_interpretation_modal.html' %} -{% endif %} - - -{% if current_user.is_authenticated %} {% set show_edit_interpretation = True %} -{% endif %} - -{% if current_user.is_authenticated %} {% set show_delete_interpretation = True %} -{% endif %} - - - -{% if current_user.is_authenticated %} {% block right_sidebar %} - {% include 'book/right_sidebar.html' %} +{% include 'book/right_sidebar.html' %} {% endblock %} {% endif %} + {% block content %} {% include 'book/breadcrumbs_navigation.html'%}