mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Make stuff scale better #1040
This commit is contained in:
@@ -58,47 +58,7 @@
|
||||
{# boxes with info #}
|
||||
{% if periods.count > 0 %}
|
||||
<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12">
|
||||
{% for period in periods %}
|
||||
|
||||
{% if period.sum != 0 %}
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><a href="{{ route('transactions.index',[what, period.start,period.end]) }}">{{ period.name }}</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body no-padding">
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
{% for sum in period.sums %}
|
||||
<tr>
|
||||
<td style="width:33%;">
|
||||
{% if what == 'withdrawal' %}
|
||||
{{ 'spent'|_ }}
|
||||
{% endif %}
|
||||
{% if what == 'deposit' %}
|
||||
{{ 'earned'|_ }}
|
||||
{% endif %}
|
||||
{% if what == 'transfers' or what == 'transfer' %}
|
||||
{{ 'transferred'|_ }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="text-align: right;" title="{{ trans('list.number_of_transactions') }}: {{ sum.count }}">
|
||||
{% if what == 'transfers' or what == 'transfer' %}
|
||||
<span class="text-info">
|
||||
{{ formatAmountBySymbol(Steam.positive(sum.sum), sum.currency.symbol, sum.currency.dp, false) }}
|
||||
</span>
|
||||
{% else %}
|
||||
{{ formatAmountBySymbol(sum.sum, sum.currency.symbol, sum.currency.dp) }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% include 'list.periods' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user