{% 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 %}
Created by {{book.owner.username}} on {{book.created_at.strftime('%B %d, %Y')}}. Last updated on {{book.created_at.strftime('%B %d, %Y')}}
{% 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 %}