mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 23:53:12 -06:00
26 lines
1.2 KiB
Twig
26 lines
1.2 KiB
Twig
<div class="list-group">
|
|
{% for transaction in transactions %}
|
|
<a class="list-group-item" title="{{ transaction.date.formatLocalized(trans('config.month_and_day')) }}"
|
|
{% if transaction.transaction_type_type == 'Opening balance' %}
|
|
href="#"
|
|
{% else %}
|
|
href="{{ route('transactions.show',transaction.journal_id) }}"
|
|
{% endif %}
|
|
>
|
|
{{ transaction|typeIconTransaction }}
|
|
{% if transaction.transaction_description|length > 0 %}
|
|
{{ transaction.transaction_description }} ({{ transaction.description }})
|
|
{% else %}
|
|
{{ transaction.description }}
|
|
{% endif %}
|
|
<span class="pull-right small">
|
|
<!-- format amount of transaction -->
|
|
{{ formatAmountWithCode(transaction.transaction_amount, transaction.transaction_currency_code) }}
|
|
<!-- and then amount of journal itself. -->
|
|
{{ optionalJournalAmount(transaction.journal_id, transaction.transaction_amount,
|
|
transaction.transaction_currency_code, transaction.transaction_type_type) }}
|
|
</span>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|