firefly-iii/resources/twig/list/journals-tiny.twig

38 lines
1.3 KiB
Twig
Raw Normal View History

2015-05-01 11:44:49 -05:00
<div class="list-group">
{% for journal in transactions %}
<a class="list-group-item" title="{{journal.date.format('jS M Y')}}" href="{{route('transactions.show',journal.id)}}">
{% if not journal.type %}
{% if journal.transactiontype.type == 'Withdrawal' %}
2015-05-14 06:00:43 -05:00
<i class="fa fa-long-arrow-left fa-fw" title="{{ trans('list.withdrawal') }}"></i>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if journal.transactiontype.type == 'Deposit' %}
2015-05-14 06:00:43 -05:00
<i class="fa fa-long-arrow-right fa-fw" title="{{ trans('list.deposit') }}"></i>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if journal.transactiontype.type == 'Transfer' %}
2015-05-14 06:00:43 -05:00
<i class="fa fa-fw fa-exchange" title="{{ trans('list.transfer') }}"></i>
2015-05-01 11:44:49 -05:00
{% endif %}
{% else %}
{% if journal.type == 'Withdrawal' %}
2015-05-14 06:00:43 -05:00
<i class="fa fa-long-arrow-left fa-fw" title="{{ trans('list.withdrawal') }}"></i>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if journal.type == 'Deposit' %}
2015-05-14 06:00:43 -05:00
<i class="fa fa-long-arrow-right fa-fw" title="{{ trans('list.deposit') }}"></i>
2015-05-01 11:44:49 -05:00
{% endif %}
{% if journal.type == 'Transfer' %}
2015-05-14 06:00:43 -05:00
<i class="fa fa-fw fa-exchange" title="{{ trans('list.transfer') }}"></i>
2015-05-01 11:44:49 -05:00
{% endif %}
{% endif %}
{{ journal.description }}
<span class="pull-right small">
{{ journal|formatJournal }}
</span>
</a>
{% endfor %}
</div>