Fix something with the dates.

This commit is contained in:
James Cole
2015-09-25 19:36:03 +02:00
parent 73cfbbd2ba
commit 66dbd48b76

View File

@@ -50,31 +50,33 @@
</div> </div>
</div> </div>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12"> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
{% for entry in entries %} {% for entry in entries %}
<div class="box"> {% if entry[2] != 0 or entry[3] != 0 %}
<div class="box-header with-border"> <div class="box">
<h3 class="box-title"><a href="{{ route('categories.show.date',[category.id,entry[0]]) }}">{{ entry[1] }}</a> <div class="box-header with-border">
</h3> <h3 class="box-title"><a href="{{ route('categories.show.date',[category.id,entry[0]]) }}">{{ entry[1] }}</a>
</div> </h3>
<div class="box-body no-padding"> </div>
<table class="table table-hover"> <div class="box-body no-padding">
{% if entry[2] != 0 %} <table class="table table-hover">
<tr> {% if entry[2] != 0 %}
<td colspan="33%">{{ 'spent'|_ }}</td> <tr>
<td colspan="67%">{{ entry[2]|formatAmount }}</td> <td colspan="33%">{{ 'spent'|_ }}</td>
</tr> <td colspan="67%">{{ entry[2]|formatAmount }}</td>
{% endif %} </tr>
{% if entry[3] != 0 %} {% endif %}
<tr> {% if entry[3] != 0 %}
<td colspan="33%">{{ 'earned'|_ }}</td> <tr>
<td colspan="67%">{{ entry[3]|formatAmount }}</td> <td colspan="33%">{{ 'earned'|_ }}</td>
</tr> <td colspan="67%">{{ entry[3]|formatAmount }}</td>
{% endif %} </tr>
</table> {% endif %}
</div> </table>
</div> </div>
</div>
{% endif %}
{% endfor %} {% endfor %}
</div> </div>
</div> </div>