Small table optimisations [skip ci]

This commit is contained in:
James Cole
2016-12-03 21:12:02 +01:00
parent b032825342
commit c5d31bccc5

View File

@@ -1,4 +1,4 @@
<table class="table table-hover sortable"> <table class="table table-hover sortable table-condensed">
<thead> <thead>
<tr> <tr>
<th rowspan="2" data-defaultsort="disabled">{{ 'category'|_ }}</th> <th rowspan="2" data-defaultsort="disabled">{{ 'category'|_ }}</th>
@@ -32,6 +32,7 @@
</td> </td>
{% else %} {% else %}
<td data-value="0"> <td data-value="0">
{{ 0|formatAmount }}
</td> </td>
{% endif %} {% endif %}
@@ -42,14 +43,15 @@
</td> </td>
{% else %} {% else %}
<td data-value="0"> <td data-value="0">
{{ 0|formatAmount }}
</td> </td>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<td data-value="{{ report.income[category.id].sum }}"> <td data-value="{{ report.income[category.id].sum }}">
{{ report.income[category.id].sum }} {{ report.income[category.id].sum|formatAmount }}
</td> </td>
<td data-value="{{ report.expense[category.id].sum }}"> <td data-value="{{ report.expense[category.id].sum }}">
{{ report.expense[category.id].sum }} {{ report.expense[category.id].sum|formatAmount }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}