{% extends 'user/layout.html' %} {% load i18n %} {% load utilities %} {% 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_with_text="pencil" controls_text="show_edit_goal" focus="edit_form_header" %}
{% endif %}
{% endblock %} {% block panel %}
{% now 'Y' as current_year %} {% if user == request.user and year|add:0 == current_year|add:0 %} {% comparison_bool goal None as visible %} {% include 'user/goal_form.html' with goal=goal year=year visible=visible controls_text="show_edit_goal" class="block" %} {% 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 %}