Update month page template

This commit is contained in:
Edgar P. Burkhart 2024-01-02 15:03:45 +01:00
parent f8c0f9dced
commit 3fd87ff370
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 9 additions and 7 deletions

View file

@ -6,10 +6,12 @@
{% endblock %}
{% block h2 %}{{ month|date:"F Y"|capfirst }}{% endblock %}
{% block table %}
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
{% if not category %}
<h3>{% translate "Categories" %}</h3>
{% category_plot transactions month=month %}
{% endif %}
<section>
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
</section>
{% endblock %}

View file

@ -9,14 +9,14 @@
{% block table %}
{% if history %}
<section>
<h3>
{% translate "History" %}
</h2>
<h3>{% translate "History" %}</h3>
{% include "history/plot.html" %}
</section>
{% endif %}
{% if not category %}
<section>
<h3>{% translate "Categories" %}</h3>
{% category_plot transactions year=year %}
</section>
{% endif %}
{% endblock %}