Hide some boxes when the user has no bills.

This commit is contained in:
James Cole
2016-11-22 19:10:38 +01:00
parent eb78cf20c2
commit dbbc85a576
4 changed files with 50 additions and 48 deletions

View File

@@ -43,20 +43,21 @@
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
{% if billCount > 0 %}
<!-- BILLS -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'bills'|_ }}</h3>
<!-- BILLS -->
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'bills'|_ }}</h3>
</div>
<div class="box-body">
<div style="width:60%;margin:0 auto;">
<canvas id="bills-chart" style="width:100%;height:175px;" height="175"></canvas>
</div>
<div class="box-body">
<div style="width:60%;margin:0 auto;">
<canvas id="bills-chart" style="width:100%;height:175px;" height="175"></canvas>
</div>
</div>
</div>
</div>
{% endif %}
<!-- TRANSACTIONS -->
{% for data in transactions %}
@@ -129,6 +130,7 @@
{% else %}
showTour = false;
{% endif %}
var billCount = {{ billCount }};
</script>
<script type="text/javascript" src="js/lib/Chart.bundle.min.js"></script>