{% extends 'layout.html' %} {% block content %}

{{ year }} Reading Progress

{% if user == request.user %}
{% if goal %} {% endif %}
{% now 'Y' as year %}

{{ year }} reading goal

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

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

{{ user.display_name }} hasn't set a reading goal for {{ year }}.

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

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

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