{% load main_extras %} {% load history_extras %} {% load transaction_extras %} {% load i18n %}
{% for date in history.data reversed %} {% ifchanged %} {% if date.sum_m or date.sum_p %} {% else %} {% endif %} {% endifchanged %} {% endfor %}
{{ "expand-up-down"|remix }} {% translate "Month" %} {% translate "Expenses" %} {% translate "Income" %}
{% up_down_icon date.sum %} {% if year %} {% month_url date.month fmt="F" %} {% else %} {% month_url date.month %} {% endif %} {{ date.sum_m|pmrvalue }} {% plot_bar date.sum date.sum_m history.max.pm %} {% plot_bar date.sum date.sum_p history.max.pm %} {{ date.sum_p|pmrvalue }}
{% if not year %} {% endif %} {% calendar_head %} {% regroup history.data by month.year as years_list %} {% for y, year in years_list reversed %} {% if not year %} {% endif %} {% for m in year %} {% if forloop.parentloop.last and forloop.first %} {% empty_calendar_cells_start m.month.month %} {% endif %} {% if m %} {% else %} {% endif %} {% if forloop.parentloop.first and forloop.last %} {% empty_calendar_cells_end m.month.month %} {% endif %} {% endfor %} {% endfor %}
{% translate "Year" %}
{% year_url y %}