Do not show budget graphs if no data

This commit is contained in:
Yingtong Li 2023-04-30 23:12:30 +10:00
parent 0622ac2a89
commit 2b976fd19e
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -311,11 +311,15 @@
</div> </div>
<div class="four wide column"> <div class="four wide column">
{% if revision.expense %}
<p class="ui header">Expenses</p> <p class="ui header">Expenses</p>
<canvas id="chartExpenses"></canvas> <canvas id="chartExpenses"></canvas>
{% endif %}
{% if revision.expense or revision.revenue %}
<p class="ui header">Revenue and expenses</p> <p class="ui header">Revenue and expenses</p>
<canvas id="chartRevExp"></canvas> <canvas id="chartRevExp"></canvas>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}