View updates. [skip ci]

This commit is contained in:
James Cole
2016-05-14 23:14:49 +02:00
parent 0d39161ec3
commit 446ab62d38
2 changed files with 8 additions and 11 deletions

View File

@@ -39,27 +39,23 @@
<a href="{{ route('transactions.show',journal.id) }}" title="{{ journal.description }}">{{ journal.description }}</a>
</td>
<td>
{{ journal|formatJournal }}
{% if not accountPerspective %}
{{ journal|formatJournal }}
{% else %}
{{ formatPerspective(journal, accountPerspective)|raw }}
{% endif %}
</td>
<td class="hidden-sm hidden-xs">
{{ journal.date.formatLocalized(monthAndDayFormat) }}
</td>
{% if not hideSource %}
<td class="hidden-xs">
{% if journal.source_account_type == 'Cash account' %}
<span class="text-success">(cash)</span>
{% else %}
<a href="{{ route('accounts.show',journal.source_account_id) }}">{{ journal.source_account_name }}</a>
{% endif %}
{{ sourceAccount(journal)|raw }}
</td>
{% endif %}
{% if not hideDestination %}
<td class="hidden-xs">
{% if journal.destination_account_type == 'Cash account' %}
<span class="text-success">(cash)</span>
{% else %}
<a href="{{ route('accounts.show',journal.destination_account_id) }}">{{ journal.destination_account_name }}</a>
{% endif %}
{{ destinationAccount(journal)|raw }}
</td>
{% endif %}

View File

@@ -8,6 +8,7 @@
<div class="modal-body">
{% set hideBudget = true %}
{% set hideSource = true %}
{% set accountPerspective = account %}
{% include 'popup/list/journals.twig' %}
</div>
<div class="modal-footer">