{% extends 'base.html' %} {% set selected_tab='my_library' %} {% block content %} {% if current_user.is_authenticated %} {% include 'book/add_book_modal.html' %} {% endif %}
{% if not current_user.is_authenticated %}
{% endif %} {% if current_user.is_authenticated and books.total<1 %}
{% endif %}

My library

{% for book in books if not book.is_deleted%}
{{book.label}}
{% if book.versions %}

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

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

{{ book.approved_interpretations|length }}

{{ book.approved_comments|length }}

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