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 class="four wide column">
<p class="ui header">Expenses</p>
<canvas id="chartExpenses"></canvas>
{% if revision.expense %}
<p class="ui header">Expenses</p>
<canvas id="chartExpenses"></canvas>
{% endif %}
<p class="ui header">Revenue and expenses</p>
<canvas id="chartRevExp"></canvas>
{% if revision.expense or revision.revenue %}
<p class="ui header">Revenue and expenses</p>
<canvas id="chartRevExp"></canvas>
{% endif %}
</div>
{% endblock %}