{% extends 'base.html' %} {% set selected_tab='favorite_books' %} {% block title %}Favorite Books{% endblock %} {% block content %}
{% if not current_user.is_authenticated %}
{% endif %} {% if current_user.is_authenticated and current_user.stars|length==0 %}
You don't have favorite books start to explore book to choose one!
{% endif %}
{% if current_user.is_authenticated and current_user.stars|length>0 %}

Fav books

{% if current_user.is_authenticated %} {% include 'book/components/header_buttons.html' %} {% endif %}
{% endif %} {% for book in books %}
{{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 %}