{% comment %} Used by the annual_reading_counts_card template tag. Expects: * current_year: A date object representing the current year, if any. * years: A list of dicts. * kind: One of 'book', 'publication', 'all' * card_title: Text for the card's title. {% endcomment %} {% if years|length > 0 %} {% load spectator_core %} {% current_url_name as url_name %}
Books, periodicals and total
Year | Books | Periodicals | Total |
---|---|---|---|
{% if url_name == 'spectator:reading:reading_year_archive' and current_year == year_data.year %} {{ year_data.year|date:"Y" }} {% else %} {{ year_data.year|date:"Y" }} {% endif %} | {{ year_data.book }} | {{ year_data.periodical }} | {{ year_data.total }} |