{% extends 'base.html' %} {% block right_sidebar %} {% endblock %} {% block title %}{{book.label[:32]}}{% endblock %} {% block content %} {% if current_user.is_authenticated %} {% include 'book/modals/add_collection_modal.html' %} {% include 'book/modals/delete_collection_modal.html' %} {% include 'book/modals/add_sub_collection_modal.html' %} {% include 'book/modals/delete_sub_collection_modal.html' %} {% include 'book/modals/add_section_modal.html' %} {% include 'book/modals/delete_section_modal.html' %} {% endif %}

Table of contents

{% if has_permission(book, Access.U) %}
{% if not book.versions[-1].children_collections and current_user.is_authenticated %} {% endif %}
{% endif %}
{% for collection in book.versions[-1].children_collections if not collection.is_root and not collection.is_deleted %}
{% endfor %}

Created by {{book.owner.username}} on {{book.created_at.strftime('%B %d, %Y')}}. Last updated on {{book.created_at.strftime('%B %d, %Y')}}

{% for tag in book.tags %}
{{tag.name}}
{% endfor %}

{% if book.about==None %}About text{% else %}{{book.about}}{% endif %}

{% for collection in book.versions[-1].children_collections if not collection.is_root and not collection.is_deleted %}

#{{collection.label}}

{% if not collection.is_leaf and not collection.active_children %}

Collection is empty

{% endif %} {{recursive_render("book/components/sub_collection_preview_content.html",collection,book)|safe}} {% endfor %}
{% endblock %} {% block scripts %} {% endblock %}