2017-11-24 10:05:53 +09:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.action_logs.title')
|
|
|
|
|
2024-06-14 18:49:10 +09:00
|
|
|
= form_with url: admin_action_logs_url, method: :get, class: :simple_form do |form|
|
2020-04-03 20:06:34 +09:00
|
|
|
= hidden_field_tag :target_account_id, params[:target_account_id] if params[:target_account_id].present?
|
|
|
|
|
|
|
|
.filters
|
|
|
|
.filter-subset.filter-subset--with-select
|
|
|
|
%strong= t('admin.action_logs.filter_by_user')
|
|
|
|
.input.select.optional
|
2024-06-14 18:49:10 +09:00
|
|
|
= form.select :account_id,
|
|
|
|
options_from_collection_for_select(@auditable_accounts, :id, :username, params[:account_id]),
|
|
|
|
prompt: I18n.t('admin.accounts.moderation.all')
|
2020-04-03 20:06:34 +09:00
|
|
|
|
|
|
|
.filter-subset.filter-subset--with-select
|
|
|
|
%strong= t('admin.action_logs.filter_by_action')
|
|
|
|
.input.select.optional
|
2024-06-14 18:49:10 +09:00
|
|
|
= form.select :action_type,
|
2024-10-02 23:47:00 +09:00
|
|
|
options_for_select(sorted_action_log_types, params[:action_type]),
|
2024-06-14 18:49:10 +09:00
|
|
|
prompt: I18n.t('admin.accounts.moderation.all')
|
2020-04-03 20:06:34 +09:00
|
|
|
|
|
|
|
- if @action_logs.empty?
|
2023-03-15 12:15:36 +09:00
|
|
|
.muted-hint.center-text
|
2020-04-03 20:06:34 +09:00
|
|
|
= t 'admin.action_logs.empty'
|
|
|
|
- else
|
2022-01-17 17:41:33 +09:00
|
|
|
.report-notes
|
2021-03-07 15:06:56 +09:00
|
|
|
= render partial: 'action_log', collection: @action_logs
|
2017-11-24 10:05:53 +09:00
|
|
|
|
|
|
|
= paginate @action_logs
|