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

34 lines
1.1 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 %}
<tr>
{% if showPiggyBank %}
<td>
2015-05-17 08:24:30 -05:00
<a href="{{ route('piggy-banks.show',event.piggyBank_id) }}">{{ event.piggyBank.name }}</a>
2015-05-02 04:32:45 -05:00
</td>
{% endif %}
<td>
{% if event.transaction_journal_id %}
<a href="{{ route('transactions.show',event.transaction_journal_id) }}" title="{{ event.transactionJournal.description }}">{{ event.date.format('j F Y') }}</a>
{% else %}
{{ event.date.format('j F Y') }}
{% endif %}
</td>
<td>
{% if event.amount < 0 %}
<span class="text-danger">Removed {{ event.amount*-1|formatAmountPlain }}</span>
{% else %}
<span class="text-success">Added {{ event.amount|formatAmountPlain }}</span>
{% endif %}
</td>
</tr>
{% endfor %}
</table>