mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-10 23:45:48 -06:00
59 lines
1.8 KiB
Twig
59 lines
1.8 KiB
Twig
<table class="table table-hover sortable">
|
|
<thead>
|
|
<tr>
|
|
<th data-defaultsign="az">{{ 'name'|_ }}</th>
|
|
<th data-defaultsign="_19">{{ 'total'|_ }}</th>
|
|
<th data-defaultsign="_19" class="hidden-xs">{{ 'average'|_ }}</th>
|
|
<th data-defaultsort="disabled"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% set sum = 0 %}
|
|
{% for entry in entries %}
|
|
{% set sum = sum + entry.sum %}
|
|
{% if loop.index > listLength %}
|
|
<tr class="overListLength">
|
|
{% else %}
|
|
<tr>
|
|
{% endif %}
|
|
<td data-value="{{ entry.name }}">
|
|
<a href="{{ route('accounts.show',entry.id) }}">{{ entry.name }}</a>
|
|
{% if entry.count > 1 %}
|
|
<br/>
|
|
<small>
|
|
{{ entry.count }} {{ 'transactions'|_|lower }}
|
|
</small>
|
|
{% endif %}
|
|
</td>
|
|
<td data-value="{{ entry.sum }}">
|
|
{{ (entry.sum)|formatAmount }}
|
|
</td>
|
|
<td class="hidden-xs" data-value="{{ entry.average }}">
|
|
{% if entry.count > 1 %}
|
|
{{ entry.average|formatAmount }}
|
|
{% else %}
|
|
—
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="{{ type }}"
|
|
data-account-id="{{ entry.id }}"></i>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
{% if entries|length > listLength %}
|
|
<tr>
|
|
<td colspan="3" class="active">
|
|
<a href="#" class="listLengthTrigger">{{ trans('firefly.show_full_list',{number:incomeTopLength}) }}</a>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td><em>{{ 'sum'|_ }}</em></td>
|
|
<td>{{ (sum)|formatAmount }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|