{% extends "main/base.html" %} {% load i18n static main_extras transaction_extras category %} {% block link %} {{ block.super }} {% css "main/css/plot.css" %} {% css "main/css/table.css" %} {% endblock link %} {% block title %} {{ year|date:"Y" }} – {{ block.super }} {% endblock title %} {% block body %}

{{ year|date:"Y" }}

{% if previous_year %} {% year_url previous_year cls="prev" %} {% endif %} {% year_url year cls="cur" %} {% if next_year %} {% year_url next_year cls="next" %} {% endif %}

{% if account or category %}

{{ "arrow-go-back"|remix }}{% translate "Back" %} {% if account %} {{ account.icon|remix }}{{ account }} {% endif %} {% if category %} {{ category.icon|remix }}{{ category }} {% endif %}

{% endif %} {% if history %}

{% translate "History" %}

{% include "history/plot.html" %}
{% endif %} {% if not category %}

{% translate "Categories" %}

{% category_plot transactions year=year %}
{% endif %}

{% translate "Transactions" %}

{% url_get "transactions" start_date=year end_date=year|end_of_year category=category.id account=account.id as t_url %}

{{ "list-check"|remixnl }}{% translate "View all transactions" %}

{% transaction_table transactions n_max=8 transactions_url=t_url %}

{% if previous_year %} {% year_url previous_year cls="prev" %} {% endif %} {% year_url year cls="cur" %} {% if next_year %} {% year_url next_year cls="next" %} {% endif %}

{% endblock body %}