fix 'many if'

This commit is contained in:
Kostiantyn Stoliarskyi 2023-05-17 16:05:52 +03:00
parent c93909fb86
commit 196a59b3f4

View File

@ -8,25 +8,14 @@
{% include 'book/delete_comment_modal.html' %}
{% include 'book/edit_comment_modal.html' %}
{% include 'book/edit_interpretation_modal.html' %}
{% endif %}
<!-- show delete section btn on rightside bar -->
{% if current_user.is_authenticated %}
{% set show_edit_interpretation = True %}
{% endif %}
<!-- prettier-ignore -->
{% if current_user.is_authenticated %}
{% set show_delete_interpretation = True %}
{% endif %}
<!-- prettier-ignore -->
{% 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'%}
<div class="shadow-md mt-5 md:mr-64 h-auto overflow-x-hidden">