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 %} {% endblock %}
{% block h2 %}{{ month|date:"F Y"|capfirst }}{% endblock %} {% block h2 %}{{ month|date:"F Y"|capfirst }}{% endblock %}
{% block table %} {% block table %}
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
{% if not category %} {% if not category %}
<h3>{% translate "Categories" %}</h3> <h3>{% translate "Categories" %}</h3>
{% category_plot transactions month=month %} {% category_plot transactions month=month %}
{% endif %} {% endif %}
<section>
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
</section>
{% endblock %} {% endblock %}

View File

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