2022-12-31 06:57:05 +01:00
|
|
|
<table class="table" aria-label="Table">
|
2022-10-02 14:37:50 +02:00
|
|
|
{% for logEntry in logEntries %}
|
|
|
|
|
<tr>
|
2022-12-31 06:57:05 +01:00
|
|
|
<th style="width:20%;" scope="row">
|
2022-10-02 14:37:50 +02:00
|
|
|
{# link to object: #}
|
|
|
|
|
{% if 'FireflyIII\\Models\\Rule' == logEntry.changer_type %}
|
2023-06-21 05:55:57 +02:00
|
|
|
<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 }}
|
2022-10-02 14:37:50 +02:00
|
|
|
</a>
|
2022-12-31 06:57:05 +01:00
|
|
|
</th>
|
2023-06-21 05:55:57 +02:00
|
|
|
<td style="width:30%;" title="{{ logEntry.created_at.isoFormat(dateTimeFormat) }}">
|
2022-10-02 14:37:50 +02:00
|
|
|
{{ trans('firefly.ale_action_'~logEntry.action) }}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
{# display depends on action #}
|
|
|
|
|
{% if 'add_tag' == logEntry.action %}
|
|
|
|
|
<code>{{ logEntry.after }}</code>
|
|
|
|
|
{% endif %}
|
2023-06-21 05:55:57 +02:00
|
|
|
|
2024-03-10 11:57:21 +01:00
|
|
|
{% if 'update_amount' == logEntry.action %}
|
|
|
|
|
{{ formatAmountBySymbol(logEntry.before.amount, logEntry.before.currency_symbol, logEntry.before.decimal_places, true) }}
|
|
|
|
|
→
|
|
|
|
|
{{ formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true) }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2023-06-21 05:55:57 +02:00
|
|
|
{% if 'update_group_title' == logEntry.action %}
|
2022-10-02 14:37:50 +02:00
|
|
|
<code><s>{{ logEntry.before }}</s></code>
|
2023-06-21 05:55:57 +02:00
|
|
|
→
|
|
|
|
|
<code>{{ logEntry.after }}</code>
|
2022-10-02 14:37:50 +02:00
|
|
|
{% 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 %}
|
2023-06-21 05:55:57 +02:00
|
|
|
{% if 'update_date' == logEntry.action %}
|
|
|
|
|
<code><s>{{ carbonize(logEntry.before).isoFormat(dateTimeFormat) }}</s></code>
|
|
|
|
|
→
|
|
|
|
|
<code>{{ carbonize(logEntry.after).isoFormat(dateTimeFormat) }}</code>
|
|
|
|
|
{% endif %}
|
2022-10-02 14:37:50 +02:00
|
|
|
{% 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 %}
|
2022-10-02 20:13:32 +02:00
|
|
|
<code><s>{{ logEntry.before }}</s></code>
|
2022-10-02 14:37:50 +02:00
|
|
|
→
|
2022-10-02 20:13:32 +02:00
|
|
|
<code>{{ logEntry.after }}</code>
|
2022-10-02 14:37:50 +02:00
|
|
|
{% endif %}
|
|
|
|
|
{% if 'add_to_piggy' == logEntry.action %}
|
|
|
|
|
{{ trans('firefly.ale_action_log_add', {amount: formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.name})|raw }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if 'remove_from_piggy' == logEntry.action %}
|
|
|
|
|
{{ trans('firefly.ale_action_log_remove', {amount: formatAmountBySymbol(logEntry.after.amount, logEntry.after.currency_symbol, logEntry.after.decimal_places, true), name: logEntry.after.name})|raw }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|