{% extends "main/base.html" %} {% load i18n static main_extras transaction_extras category history_extras %} {% block link %} {{ block.super }} {% css "main/css/plot.css" %} {% css "main/css/table.css" %} {% endblock link %} {% block body %}

{% block h2 %} {% endblock h2 %}

{% history_pagination %} {% 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 month=month year=year %}
{% endif %}

{% translate "Transactions" %}

{% if month %} {% url_get "transactions" start_date=month end_date=month|end_of_month category=category.id account=account.id as t_url %} {% elif year %} {% url_get "transactions" start_date=year end_date=year|end_of_year category=category.id account=account.id as t_url %} {% endif %}

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

{% transaction_table transactions n_max=8 transactions_url=t_url %}
{% history_pagination %} {% endblock body %}