Do not show budget graphs if no data
This commit is contained in:
parent
0622ac2a89
commit
2b976fd19e
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user