{% extends "page.jinja" %} {% block heading %} {% if exps | length > 1 %} Aktuelle Kosten {% else %} Kosten für {{exps[0]|date}} {% endif %} {% endblock %} {% block js %} {{ super() }} {% endblock %} {% block content %} {% for e in exps %} {% if exps | length > 1 %}

{{e|date}}

{% endif %} {% for c in e.catexps | sort(attribute="cat.name") %} {% call(exp) detail(name=c.cat.name, sum=c.expense, set=c.all) %} {{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur }} {% endcall %} {% endfor %} {% call(exp) detail(name="Constant", sum=e.constsum, set=e.consts) %} {{exp.monthly}} -- {{exp.description}} {% endcall %} {% call(exp) detail(name="In Summa", sum=e.sum, set=e.all, color="#ff2d2d") %} {{exp.day}}.{{exp.month}}. -- {{exp.description}}: {{exp.expense | eur}} {% endcall %}
{% endfor %} {% set d = prev_date(exps | last) %} {{ left_arrow(url_for(".show_date", **d), d | date) }} {% if not is_last %} {% set d = next_date(exps | last) %} {{ right_arrow(url_for(".show_date", **d), d | date) }} {% endif %} {% endblock content %} {% macro detail(name, sum, set, color=None) %}
{% call colorize(fgcolor=color) %} {{name}}: {{sum | eur}}
{% endcall %}
{% endmacro %}