{% extends 'base.html' %} {% set selected_tab='my_library' %} {% block title %}My Library{% endblock %} {% block content %} {% if current_user.is_authenticated %} {% include 'book/modals/add_book_modal.html' %} {% endif %}
{% if not current_user.is_authenticated %}
{% endif %} {% if current_user.is_authenticated and not books.total %}
{% endif %}
{% if current_user.is_authenticated and books.total %}

My library

{% if current_user.is_authenticated %} {% include 'book/components/header_buttons.html' %} {% endif %}
{% endif %} {% for book in books if not book.is_deleted %}
{% if book.original_book %}

Fork

{% endif %} {% if book.user_id != current_user.id %} Contributing {% endif %} {{book.label}}
{% if book.versions %}

Last updated on {{book.versions[-1].updated_at.strftime('%B %d, %Y')}}

{% endif %}
{{ book.stars|length }}

{{ book.interpretations|length }}

{{ book.approved_comments|length }}

{% endfor %} {% if current_user.is_authenticated and page.pages > 1 %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}