mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-06 14:13:37 -07:00
119 lines
5.4 KiB
PHP
119 lines
5.4 KiB
PHP
<table class="table" aria-label="Table">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="3"><em>{{ 'incomplete_ale'|_ }}</em></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for logEntry in logEntries %}
|
|
<tr>
|
|
<th class="twenty" scope="row">
|
|
{{-- link to object: --}}
|
|
{% if 'FireflyIII\\Models\\Rule' == logEntry.changer_type %}
|
|
<a href="{{ route('rules.edit', [logEntry.changer_id] ) }}">
|
|
@endif
|
|
{% if 'FireflyIII\\User' == logEntry.changer_type %}
|
|
<a href="{{ route('profile.index') }}">
|
|
@endif
|
|
{{ logEntry.changer_type|replace({"FireflyIII\\Models\\": ""})|replace({"FireflyIII\\": ""}) }} #{{ logEntry.changer_id }}
|
|
</a>
|
|
</th>
|
|
<td class="thirty" title="{{ logEntry.created_at.isoFormat($dateTimeFormat) }}">
|
|
{{ trans('firefly.ale_action_'~logEntry.action) }}
|
|
</td>
|
|
<td>
|
|
{{-- display depends on action --}}
|
|
{% if 'add_tag' == logEntry.action %}
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
|
|
{% if 'update_amount' == logEntry.action %}
|
|
{!! format_amount_by_symbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
|
|
→
|
|
{!! format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
|
|
@endif
|
|
{% if 'update_foreign_amount' == logEntry.action %}
|
|
{!! format_amount_by_symbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
|
|
→
|
|
{!! format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
|
|
@endif
|
|
|
|
|
|
{% if 'update_group_title' == logEntry.action %}
|
|
<code><s>{{ logEntry.before }}</s></code>
|
|
→
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'clear_category' == logEntry.action %}
|
|
<code><s>{{ logEntry.before }}</s></code>
|
|
@endif
|
|
{% if 'clear_tag' == logEntry.action %}
|
|
<code><s>{{ logEntry.before }}</s></code>
|
|
@endif
|
|
|
|
{% if 'clear_notes' == logEntry.action %}
|
|
{% if logEntry.before|length > 25 %}
|
|
<code><s>{{ logEntry.before|slice(0,25) }}...</s></code>
|
|
@else
|
|
<code><s>{{ logEntry.before }}</s></code>
|
|
@endif
|
|
@endif
|
|
|
|
{% if 'set_bill' == logEntry.action %}
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'set_budget' == logEntry.action %}
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'set_category' == logEntry.action %}
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'set_source' == logEntry.action %}
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'set_destination' == logEntry.action %}
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'update_date' == logEntry.action %}
|
|
<code><s>{{ carbonize(logEntry.before).isoFormat($dateTimeFormat) }}</s></code>
|
|
→
|
|
<code>{{ carbonize(logEntry.after).isoFormat($dateTimeFormat) }}</code>
|
|
@endif
|
|
{% if 'update_transaction_type' == logEntry.action %}
|
|
{{ trans('firefly.'~logEntry.before) }} → {{ trans('firefly.'~logEntry.after) }}
|
|
@endif
|
|
|
|
{% if 'update_notes' == logEntry.action %}
|
|
{% if logEntry.before|length > 25 %}
|
|
<code><s>{{ logEntry.before|slice(0,25) }}...</s></code>
|
|
@else
|
|
<code><s>{{ logEntry.before }}</s></code>
|
|
@endif
|
|
|
|
→
|
|
{% if logEntry.after|length > 25 %}
|
|
<code>{{ logEntry.after|slice(0,25) }}...</code>
|
|
@else
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
@endif
|
|
|
|
{% if 'update_description' == logEntry.action %}
|
|
<code><s>{{ logEntry.before }}</s></code>
|
|
→
|
|
<code>{{ logEntry.after }}</code>
|
|
@endif
|
|
{% if 'add_to_piggy' == logEntry.action %}
|
|
{{ trans('firefly.ale_action_log_add', {amount: format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}
|
|
@endif
|
|
{% if 'remove_from_piggy' == logEntry.action %}
|
|
{{ trans('firefly.ale_action_log_remove', {amount: format_amount_by_symbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.piggy|e})|raw }}
|
|
@endif
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|