firefly-iii/resources/views/list/piggy-bank-events.twig

35 lines
1.3 KiB
Twig
Raw Normal View History

2015-06-21 03:50:45 -05:00
<table class="table table-hover">
2015-05-02 04:32:45 -05:00
<tr>
{% if showPiggyBank %}
<th>Piggy bank</th>
{% endif %}
2015-05-14 06:00:43 -05:00
<th>{{ trans('list.date') }}</th>
<th>{{ trans('list.amount') }}</th>
2015-05-02 04:32:45 -05:00
</tr>
{% for event in events %}
2015-06-27 01:06:24 -05:00
<tr>
{% if showPiggyBank %}
<td>
<a href="{{ route('piggy-banks.show',event.piggyBank.id) }}">{{ event.piggyBank.name }}</a>
2015-06-27 01:06:24 -05:00
</td>
2015-05-02 04:32:45 -05:00
{% endif %}
2015-06-27 01:06:24 -05:00
<td>
{% if event.transaction_journal_id %}
<a href="{{ route('transactions.show',event.transaction_journal_id) }}"
2015-07-24 01:34:30 -05:00
title="{{ event.transactionJournal.description }}">{{ event.date.formatLocalized(monthAndDayFormat) }}</a>
2015-06-27 01:06:24 -05:00
{% else %}
2015-07-24 01:34:30 -05:00
{{ event.date.formatLocalized(monthAndDayFormat) }}
2015-06-27 01:06:24 -05:00
{% endif %}
2015-05-02 04:32:45 -05:00
</td>
2015-06-27 01:06:24 -05:00
<td>
{% if event.amount < 0 %}
<span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
2015-06-27 01:06:24 -05:00
{% else %}
2015-07-24 01:34:30 -05:00
<span class="text-success">{{ trans('firefly.added_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
2015-06-27 01:06:24 -05:00
{% endif %}
2015-05-02 04:32:45 -05:00
</td>
2015-06-27 01:06:24 -05:00
</tr>
2015-05-02 04:32:45 -05:00
{% endfor %}
</table>