This should fix #677

This commit is contained in:
James Cole 2017-06-26 18:24:29 +02:00
parent 5a0be7d2ad
commit 8549c7c81b
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -8,7 +8,7 @@
</thead>
<tbody>
{% set sum = 0 %}
{% for id, category in report %}
{% for index, category in report %}
{% set sum = sum + category.spent %}
{% if loop.index > listLength %}
<tr class="overListLength">
@ -16,12 +16,12 @@
<tr>
{% endif %}
<td>
<a href="{{ route('categories.show',id) }}">{{ category.name }}</a>
<a href="{{ route('categories.show', category.id) }}">{{ category.name }}</a>
</td>
<td style="text-align: right;">{{ category.spent|formatAmount }}</td>
<td style="width:20px;">
<i class="fa fa-fw fa-info-circle text-muted firefly-info-button"
data-location="category-entry" data-category-id="{{ id }}"
data-location="category-entry" data-category-id="{{ category.id }}"
></i>
</td>
</tr>