Better category overview [skip ci]

This commit is contained in:
James Cole
2016-12-27 11:02:14 +01:00
parent 5efdf53c06
commit 244972e0f8
2 changed files with 17 additions and 2 deletions

View File

@@ -28,7 +28,8 @@
</div>
</div>
</div>
{% else %}
{% endif %}
{% if not entries and not showAll %}
{# single chart #}
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
@@ -41,6 +42,19 @@
</div>
</div>
{% endif %}
{% if not entries and showAll %}
{# all chart #}
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'overview'|_ }} ({{ 'all_periods'|_|lower }})</h3>
</div>
<div class="box-body">
<canvas id="all" style="width:100%;" height="350"></canvas>
</div>
</div>
</div>
{% endif %}
</div>
<div class="row">
<div class="{% if entries %}col-lg-10 col-md-8 col-sm-12 col-xs-12{% else %}col-lg-12 col-md-12 col-sm-12 col-xs-12{% endif %}">