mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Better display for piggy bank events.
This commit is contained in:
parent
50c13fd469
commit
ba9601d21c
@ -19,6 +19,8 @@ return [
|
|||||||
'never' => 'Never',
|
'never' => 'Never',
|
||||||
'search_results_for' => 'Search results for ":query"',
|
'search_results_for' => 'Search results for ":query"',
|
||||||
'bounce_error' => 'The message sent to :email bounced.',
|
'bounce_error' => 'The message sent to :email bounced.',
|
||||||
|
'removed_amount' => 'Removed :amount',
|
||||||
|
'added_amount' => 'Added :amount',
|
||||||
|
|
||||||
// attachments
|
// attachments
|
||||||
'nr_of_attachments' => 'One attachment|:count attachments',
|
'nr_of_attachments' => 'One attachment|:count attachments',
|
||||||
|
@ -16,17 +16,19 @@
|
|||||||
<td>
|
<td>
|
||||||
{% if event.transaction_journal_id %}
|
{% if event.transaction_journal_id %}
|
||||||
<a href="{{ route('transactions.show',event.transaction_journal_id) }}"
|
<a href="{{ route('transactions.show',event.transaction_journal_id) }}"
|
||||||
title="{{ event.transactionJournal.description }}">{{ event.date.format('j F Y') }}</a>
|
title="{{ event.transactionJournal.description }}">{{ event.date.formatLocalized(monthAndDayFormat) }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ event.date.format('j F Y') }}
|
{{ event.date.formatLocalized(monthAndDayFormat) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{% if event.amount < 0 %}
|
{% if event.amount < 0 %}
|
||||||
<span class="text-danger">Removed {{ event.amount*-1|formatAmountPlain }}</span>
|
|
||||||
|
<span class="text-danger">{{ trans('firefly.removed_amount', {amount: (event.amount*-1)|formatAmountPlain})|raw }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-success">Added {{ event.amount|formatAmountPlain }}</span>
|
|
||||||
|
<span class="text-success">{{ trans('firefly.added_amount', {amount: (event.amount)|formatAmountPlain})|raw }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user