{% extends 'layout.html' %} {% load i18n %} {% load bookwyrm_tags %} {% block title %}{% trans "Updates" %}{% endblock %} {% block content %}
{% if user.is_authenticated %}

{% trans "Your books" %}

{% if not suggested_books %}

{% trans "There are no books here right now! Try searching for a book to get started" %}

{% else %}
{% for shelf in suggested_books %} {% with shelf_counter=forloop.counter %} {% for book in shelf.books %}

{% include 'snippets/book_titleby.html' with book=book %}

{% include 'snippets/toggle/toggle_button.html' with label="close" controls_text="book" controls_uid=book.id class="delete" nonbutton=True pressed=True %}
{% include 'snippets/shelve_button/shelve_button.html' with book=book %} {% active_shelf book as active_shelf %} {% if active_shelf.shelf.identifier == 'reading' and book.latest_readthrough %} {% include 'snippets/progress_update.html' with readthrough=book.latest_readthrough %} {% endif %} {% include 'snippets/create_status.html' with book=book %}
{% endfor %} {% endwith %} {% endfor %}
{% endif %} {% if goal %}

{% blocktrans with yar=goal.year %}{{ year }} Reading Goal{% endblocktrans %}

{% include 'snippets/goal_progress.html' with goal=goal %}
{% endif %}
{% endif %}
{% block panel %}{% endblock %} {% if activities %} {% include 'snippets/pagination.html' with page=activities path=path anchor="#feed" %} {% endif %}
{% endblock %}