Better views for #475

This commit is contained in:
James Cole
2017-01-08 10:19:10 +01:00
parent 6d398a2edf
commit 71e31346e8
6 changed files with 152 additions and 110 deletions

View File

@@ -6,7 +6,7 @@
{% block content %}
<div class="row">
{% if entries %}
{% if method == 'default' %}
{# both charts #}
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="box">
@@ -29,7 +29,7 @@
</div>
</div>
{% endif %}
{% if not entries and not showAll %}
{% if method == 'date' %}
{# single chart #}
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
@@ -42,7 +42,7 @@
</div>
</div>
{% endif %}
{% if not entries and showAll %}
{% if method == 'all' %}
{# all chart #}
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
@@ -87,7 +87,7 @@
<div class="col-lg-2 col-md-4 col-sm-12 col-xs-12">
{% for entry in entries %}
{% if entry[2] != 0 or entry[3] != 0 %}
<div class="box">
<div class="box {% if entry[4] == start %}box-solid box-primary{% endif %}">
<div class="box-header with-border">
<h3 class="box-title"><a href="{{ route('categories.show.date',[category.id,entry[0]]) }}">{{ entry[1] }}</a>
</h3>