mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 00:27:30 +00:00
Display audit logs
This commit is contained in:
@@ -2467,76 +2467,97 @@ return [
|
||||
'recurring_never_cron' => 'It seems the cron job that is necessary to support recurring transactions has never run. This is of course normal when you have just installed Firefly III, but this should be something to set up as soon as possible. Please check out the help-pages using the (?)-icon in the top right corner of the page.',
|
||||
'recurring_cron_long_ago' => 'It looks like it has been more than 36 hours since the cron job to support recurring transactions has fired for the last time. Are you sure it has been set up correctly? Please check out the help-pages using the (?)-icon in the top right corner of the page.',
|
||||
|
||||
'create_new_recurrence' => 'Create new recurring transaction',
|
||||
'help_first_date' => 'Indicate the first expected recurrence. This must be in the future.',
|
||||
'help_first_date_no_past' => 'Indicate the first expected recurrence. Firefly III will not create transactions in the past.',
|
||||
'no_currency' => '(no currency)',
|
||||
'mandatory_for_recurring' => 'Mandatory recurrence information',
|
||||
'mandatory_for_transaction' => 'Mandatory transaction information',
|
||||
'optional_for_recurring' => 'Optional recurrence information',
|
||||
'optional_for_transaction' => 'Optional transaction information',
|
||||
'change_date_other_options' => 'Change the "first date" to see more options.',
|
||||
'mandatory_fields_for_tranaction' => 'The values here will end up in the transaction(s) being created',
|
||||
'click_for_calendar' => 'Click here for a calendar that shows you when the transaction would repeat.',
|
||||
'repeat_forever' => 'Repeat forever',
|
||||
'repeat_until_date' => 'Repeat until date',
|
||||
'repeat_times' => 'Repeat a number of times',
|
||||
'recurring_skips_one' => 'Every other',
|
||||
'recurring_skips_more' => 'Skips :count occurrences',
|
||||
'store_new_recurrence' => 'Store recurring transaction',
|
||||
'stored_new_recurrence' => 'Recurring transaction ":title" stored successfully.',
|
||||
'edit_recurrence' => 'Edit recurring transaction ":title"',
|
||||
'recurring_repeats_until' => 'Repeats until :date',
|
||||
'recurring_repeats_forever' => 'Repeats forever',
|
||||
'recurring_repeats_x_times' => 'Repeats :count time|Repeats :count times',
|
||||
'update_recurrence' => 'Update recurring transaction',
|
||||
'updated_recurrence' => 'Updated recurring transaction ":title"',
|
||||
'recurrence_is_inactive' => 'This recurring transaction is not active and will not generate new transactions.',
|
||||
'delete_recurring' => 'Delete recurring transaction ":title"',
|
||||
'new_recurring_transaction' => 'New recurring transaction',
|
||||
'help_weekend' => 'What should Firefly III do when the recurring transaction falls on a Saturday or Sunday?',
|
||||
'do_nothing' => 'Just create the transaction',
|
||||
'skip_transaction' => 'Skip the occurrence',
|
||||
'jump_to_friday' => 'Create the transaction on the previous Friday instead',
|
||||
'jump_to_monday' => 'Create the transaction on the next Monday instead',
|
||||
'will_jump_friday' => 'Will be created on Friday instead of the weekends.',
|
||||
'will_jump_monday' => 'Will be created on Monday instead of the weekends.',
|
||||
'except_weekends' => 'Except weekends',
|
||||
'recurrence_deleted' => 'Recurring transaction ":title" deleted',
|
||||
'create_new_recurrence' => 'Create new recurring transaction',
|
||||
'help_first_date' => 'Indicate the first expected recurrence. This must be in the future.',
|
||||
'help_first_date_no_past' => 'Indicate the first expected recurrence. Firefly III will not create transactions in the past.',
|
||||
'no_currency' => '(no currency)',
|
||||
'mandatory_for_recurring' => 'Mandatory recurrence information',
|
||||
'mandatory_for_transaction' => 'Mandatory transaction information',
|
||||
'optional_for_recurring' => 'Optional recurrence information',
|
||||
'optional_for_transaction' => 'Optional transaction information',
|
||||
'change_date_other_options' => 'Change the "first date" to see more options.',
|
||||
'mandatory_fields_for_tranaction' => 'The values here will end up in the transaction(s) being created',
|
||||
'click_for_calendar' => 'Click here for a calendar that shows you when the transaction would repeat.',
|
||||
'repeat_forever' => 'Repeat forever',
|
||||
'repeat_until_date' => 'Repeat until date',
|
||||
'repeat_times' => 'Repeat a number of times',
|
||||
'recurring_skips_one' => 'Every other',
|
||||
'recurring_skips_more' => 'Skips :count occurrences',
|
||||
'store_new_recurrence' => 'Store recurring transaction',
|
||||
'stored_new_recurrence' => 'Recurring transaction ":title" stored successfully.',
|
||||
'edit_recurrence' => 'Edit recurring transaction ":title"',
|
||||
'recurring_repeats_until' => 'Repeats until :date',
|
||||
'recurring_repeats_forever' => 'Repeats forever',
|
||||
'recurring_repeats_x_times' => 'Repeats :count time|Repeats :count times',
|
||||
'update_recurrence' => 'Update recurring transaction',
|
||||
'updated_recurrence' => 'Updated recurring transaction ":title"',
|
||||
'recurrence_is_inactive' => 'This recurring transaction is not active and will not generate new transactions.',
|
||||
'delete_recurring' => 'Delete recurring transaction ":title"',
|
||||
'new_recurring_transaction' => 'New recurring transaction',
|
||||
'help_weekend' => 'What should Firefly III do when the recurring transaction falls on a Saturday or Sunday?',
|
||||
'do_nothing' => 'Just create the transaction',
|
||||
'skip_transaction' => 'Skip the occurrence',
|
||||
'jump_to_friday' => 'Create the transaction on the previous Friday instead',
|
||||
'jump_to_monday' => 'Create the transaction on the next Monday instead',
|
||||
'will_jump_friday' => 'Will be created on Friday instead of the weekends.',
|
||||
'will_jump_monday' => 'Will be created on Monday instead of the weekends.',
|
||||
'except_weekends' => 'Except weekends',
|
||||
'recurrence_deleted' => 'Recurring transaction ":title" deleted',
|
||||
|
||||
// new lines for summary controller.
|
||||
'box_balance_in_currency' => 'Balance (:currency)',
|
||||
'box_spent_in_currency' => 'Spent (:currency)',
|
||||
'box_earned_in_currency' => 'Earned (:currency)',
|
||||
'box_budgeted_in_currency' => 'Budgeted (:currency)',
|
||||
'box_bill_paid_in_currency' => 'Bills paid (:currency)',
|
||||
'box_bill_unpaid_in_currency' => 'Bills unpaid (:currency)',
|
||||
'box_left_to_spend_in_currency' => 'Left to spend (:currency)',
|
||||
'box_net_worth_in_currency' => 'Net worth (:currency)',
|
||||
'box_spend_per_day' => 'Left to spend per day: :amount',
|
||||
'box_balance_in_currency' => 'Balance (:currency)',
|
||||
'box_spent_in_currency' => 'Spent (:currency)',
|
||||
'box_earned_in_currency' => 'Earned (:currency)',
|
||||
'box_budgeted_in_currency' => 'Budgeted (:currency)',
|
||||
'box_bill_paid_in_currency' => 'Bills paid (:currency)',
|
||||
'box_bill_unpaid_in_currency' => 'Bills unpaid (:currency)',
|
||||
'box_left_to_spend_in_currency' => 'Left to spend (:currency)',
|
||||
'box_net_worth_in_currency' => 'Net worth (:currency)',
|
||||
'box_spend_per_day' => 'Left to spend per day: :amount',
|
||||
|
||||
// debug page
|
||||
'debug_page' => 'Debug page',
|
||||
'debug_submit_instructions' => 'If you are running into problems, you can use the information in this box as debug information. Please copy-and-paste into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. It will generate a beautiful table that can be used to quickly diagnose your problem.',
|
||||
'debug_pretty_table' => 'If you copy/paste the box below into a GitHub issue it will generate a table. Please do not surround this text with backticks or quotes.',
|
||||
'debug_additional_data' => 'You may also share the content of the box below. You can also copy-and-paste this into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. However, the content of this box may contain private information such as account names, transaction details or email addresses.',
|
||||
'debug_page' => 'Debug page',
|
||||
'debug_submit_instructions' => 'If you are running into problems, you can use the information in this box as debug information. Please copy-and-paste into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. It will generate a beautiful table that can be used to quickly diagnose your problem.',
|
||||
'debug_pretty_table' => 'If you copy/paste the box below into a GitHub issue it will generate a table. Please do not surround this text with backticks or quotes.',
|
||||
'debug_additional_data' => 'You may also share the content of the box below. You can also copy-and-paste this into a new or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. However, the content of this box may contain private information such as account names, transaction details or email addresses.',
|
||||
|
||||
// object groups
|
||||
'object_groups_menu_bar' => 'Groups',
|
||||
'object_groups_page_title' => 'Groups',
|
||||
'object_groups_breadcrumb' => 'Groups',
|
||||
'object_groups_index' => 'Overview',
|
||||
'object_groups' => 'Groups',
|
||||
'object_groups_empty_explain' => 'Some things in Firefly III can be divided into groups. Piggy banks for example, feature a "Group" field in the edit and create screens. When you set this field, you can edit the names and the order of the groups on this page. For more information, check out the help-pages in the top right corner, under the (?)-icon.',
|
||||
'object_group_title' => 'Title',
|
||||
'edit_object_group' => 'Edit group ":title"',
|
||||
'delete_object_group' => 'Delete group ":title"',
|
||||
'update_object_group' => 'Update group',
|
||||
'updated_object_group' => 'Successfully updated group ":title"',
|
||||
'deleted_object_group' => 'Successfully deleted group ":title"',
|
||||
'object_group' => 'Group',
|
||||
'object_groups_menu_bar' => 'Groups',
|
||||
'object_groups_page_title' => 'Groups',
|
||||
'object_groups_breadcrumb' => 'Groups',
|
||||
'object_groups_index' => 'Overview',
|
||||
'object_groups' => 'Groups',
|
||||
'object_groups_empty_explain' => 'Some things in Firefly III can be divided into groups. Piggy banks for example, feature a "Group" field in the edit and create screens. When you set this field, you can edit the names and the order of the groups on this page. For more information, check out the help-pages in the top right corner, under the (?)-icon.',
|
||||
'object_group_title' => 'Title',
|
||||
'edit_object_group' => 'Edit group ":title"',
|
||||
'delete_object_group' => 'Delete group ":title"',
|
||||
'update_object_group' => 'Update group',
|
||||
'updated_object_group' => 'Successfully updated group ":title"',
|
||||
'deleted_object_group' => 'Successfully deleted group ":title"',
|
||||
'object_group' => 'Group',
|
||||
|
||||
// other stuff
|
||||
'placeholder' => '[Placeholder]',
|
||||
'placeholder' => '[Placeholder]',
|
||||
|
||||
// audit log entries
|
||||
'audit_log_entries' => 'Audit log entries',
|
||||
'ale_action_log_add' => 'Add :amount to piggy bank ":name"',
|
||||
'ale_action_log_remove' => 'Remove :amount from piggy bank ":name"',
|
||||
'ale_action_clear_budget' => 'Removed from budget',
|
||||
'ale_action_clear_category' => 'Removed from category',
|
||||
'ale_action_clear_notes' => 'Removed notes',
|
||||
'ale_action_clear_tag' => 'Cleared tag',
|
||||
'ale_action_clear_all_tags' => 'Cleared all tags',
|
||||
'ale_action_set_bill' => 'Linked to bill',
|
||||
'ale_action_set_budget' => 'Set budget',
|
||||
'ale_action_set_category' => 'Set category',
|
||||
'ale_action_set_source' => 'Set source account',
|
||||
'ale_action_set_destination' => 'Set destination account',
|
||||
'ale_action_update_transaction_type' => 'Changed transaction type',
|
||||
'ale_action_update_notes' => 'Changed notes',
|
||||
'ale_action_update_description' => 'Changed description',
|
||||
'ale_action_add_to_piggy' => 'Piggy bank',
|
||||
'ale_action_remove_from_piggy' => 'Piggy bank',
|
||||
'ale_action_add_tag' => 'Added tag',
|
||||
|
||||
];
|
||||
|
89
resources/views/list/ale.twig
Normal file
89
resources/views/list/ale.twig
Normal file
@@ -0,0 +1,89 @@
|
||||
<table class="table">
|
||||
{% for logEntry in logEntries %}
|
||||
<tr>
|
||||
<td style="width:20%;">
|
||||
{# link to object: #}
|
||||
{% if 'FireflyIII\\Models\\Rule' == logEntry.changer_type %}
|
||||
<a href="{{ route('rules.edit', [logEntry.changer_id] ) }}">
|
||||
{% endif %}
|
||||
{{ logEntry.changer_type|replace({"FireflyIII\\Models\\": ""}) }}
|
||||
#{{ logEntry.changer_id }}
|
||||
</a>
|
||||
</td>
|
||||
<td style="width:30%;">
|
||||
{{ trans('firefly.ale_action_'~logEntry.action) }}
|
||||
</td>
|
||||
<td>
|
||||
{# display depends on action #}
|
||||
{% if 'add_tag' == logEntry.action %}
|
||||
<code>{{ logEntry.after }}</code>
|
||||
{% endif %}
|
||||
{% if 'clear_budget' == logEntry.action %}
|
||||
<code><s>{{ logEntry.before }}</s></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_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>{{ logEntry.before }}</code>
|
||||
→
|
||||
<code><s>{{ logEntry.after }}</s></code>
|
||||
{% 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>
|
@@ -46,7 +46,7 @@
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ trans('list.type') }}</td>
|
||||
<td style="width:40%;">{{ trans('list.type') }}</td>
|
||||
<td>{{ first.transactiontype.type|_ }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -80,7 +80,7 @@
|
||||
<tbody>
|
||||
{% if first.transactiontype.type != 'Withdrawal' or splits == 1 %}
|
||||
<tr>
|
||||
<td>
|
||||
<td style="width:40%;">
|
||||
{{ trans_choice('firefly.source_accounts', accounts['source']|length ) }}
|
||||
</td>
|
||||
<td>
|
||||
@@ -270,13 +270,13 @@
|
||||
{% endif %}
|
||||
{% if null != journal.budget_id and first.transactiontype.type == 'Withdrawal' %}
|
||||
<tr>
|
||||
<td>{{ 'budget'|_ }}</td>
|
||||
<td style="width:40%;">{{ 'budget'|_ }}</td>
|
||||
<td><a href="{{ route('budgets.show', [journal.budget_id]) }}">{{ journal.budget_name }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if null != journal.bill_id and first.transactiontype.type == 'Withdrawal' %}
|
||||
<tr>
|
||||
<td>{{ 'bill'|_ }}</td>
|
||||
<td style="width:40%;">{{ 'bill'|_ }}</td>
|
||||
<td><a href="{{ route('bills.show', [journal.bill_id]) }}">{{ journal.bill_name }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
@@ -284,7 +284,7 @@
|
||||
{% for dateField in ['interest_date','book_date','process_date','due_date','payment_date','invoice_date'] %}
|
||||
{% if journalHasMeta(journal.transaction_journal_id, dateField) %}
|
||||
<tr>
|
||||
<td>{{ trans('list.'~dateField) }}</td>
|
||||
<td style="width:40%;">{{ trans('list.'~dateField) }}</td>
|
||||
<td>{{ journalGetMetaDate(journal.transaction_journal_id, dateField).isoFormat(monthAndDayFormat) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
@@ -293,7 +293,7 @@
|
||||
{% if journalHasMeta(journal.transaction_journal_id, metaField) %}
|
||||
<tr>
|
||||
<td>{{ trans('list.'~metaField) }}</td>
|
||||
<td>
|
||||
<td style="width:40%;">
|
||||
{% if 'external_url' == metaField %}
|
||||
{% set url = journalGetMetaField(journal.transaction_journal_id, metaField) %}
|
||||
<a href="{{ url }}" rel="noopener noreferrer nofollow" target="_blank">
|
||||
@@ -313,7 +313,7 @@
|
||||
{% endfor %}
|
||||
{% if null != journal.notes and '' != journal.notes %}
|
||||
<tr>
|
||||
<td>{{ trans('list.notes') }}</td>
|
||||
<td style="width:40%;">{{ trans('list.notes') }}</td>
|
||||
<td class="markdown">{{ journal.notes|default('')|markdown }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
@@ -323,13 +323,13 @@
|
||||
{% set recurringTotal = '∞' %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td>{{ trans('list.recurring_transaction') }}</td>
|
||||
<td style="width:40%;">{{ trans('list.recurring_transaction') }}</td>
|
||||
<td>{{ trans('firefly.recurring_info', {total: recurringTotal, count: journalGetMetaField(journal.transaction_journal_id, 'recurring_count') }) }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if journal.tags|length > 0 %}
|
||||
<tr>
|
||||
<td>{{ 'tags'|_ }}</td>
|
||||
<td style="width:40%;">{{ 'tags'|_ }}</td>
|
||||
<td>
|
||||
{% for tag in journal.tags %}
|
||||
<h4 style="display: inline;"><a class="label label-success" href="{{ route('tags.show', tag.id) }}">
|
||||
@@ -416,6 +416,18 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if logEntries[journal.transaction_journal_id]|length > 0 %}
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
{{ 'audit_log_entries'|_ }}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-body no-padding">
|
||||
{% include 'list.ale' with {logEntries: logEntries[journal.transaction_journal_id]} %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user