{% extends 'user/user_layout.html' %} {% load i18n %} {% block header %}

{% blocktrans %}{{ year }} Reading Progress{% endblocktrans %}

{% if is_self and goal %}
{% trans "Edit Goal" as button_text %} {% include 'snippets/toggle/open_button.html' with text=button_text icon="pencil" controls_text="show-edit-goal" focus="edit-form-header" %}
{% endif %}
{% endblock %} {% block panel %}
{% if user == request.user %}
{% now 'Y' as year %}

{% blocktrans %}{{ year }} Reading Goal{% endblocktrans %}

{% blocktrans %}Set a goal for how many books you'll finish reading in {{ year }}, and track your progress throughout the year.{% endblocktrans %}

{% include 'snippets/goal_form.html' with goal=goal year=year %}
{% endif %} {% if not goal and user != request.user %}

{% blocktrans with name=user.display_name %}{{ name }} hasn't set a reading goal for {{ year }}.{% endblocktrans %}

{% endif %} {% if goal %} {% include 'snippets/goal_progress.html' with goal=goal %} {% endif %}
{% if goal.books %}

{% if goal.user == request.user %} {% blocktrans %}Your {{ year }} Books{% endblocktrans %} {% else %} {% blocktrans with username=goal.user.display_name %}{{ username }}'s {{ year }} Books{% endblocktrans %} {% endif %}

{% for book in goal.books %} {% endfor %}
{% endif %} {% endblock %}