2017-11-24 12:05:53 +11:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.action_logs.title')
|
|
|
|
|
2020-04-03 22:06:34 +11:00
|
|
|
- content_for :header_tags do
|
2020-11-06 21:56:31 +11:00
|
|
|
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
2020-04-03 22:06:34 +11:00
|
|
|
|
|
|
|
= form_tag admin_action_logs_url, method: 'GET', class: 'simple_form' do
|
|
|
|
= 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
|
2022-07-05 10:41:40 +10:00
|
|
|
= select_tag :account_id, options_from_collection_for_select(@auditable_accounts, :id, :username, params[:account_id]), prompt: I18n.t('admin.accounts.moderation.all')
|
2020-04-03 22:06:34 +11:00
|
|
|
|
|
|
|
.filter-subset.filter-subset--with-select
|
|
|
|
%strong= t('admin.action_logs.filter_by_action')
|
|
|
|
.input.select.optional
|
2023-03-16 06:07:43 +11:00
|
|
|
= select_tag :action_type, options_for_select(Admin::ActionLogFilter::ACTION_TYPE_MAP.keys.map { |key| [I18n.t("admin.action_logs.action_types.#{key}"), key] }, params[:action_type]), prompt: I18n.t('admin.accounts.moderation.all')
|
2020-04-03 22:06:34 +11:00
|
|
|
|
|
|
|
- if @action_logs.empty?
|
2023-03-15 14:15:36 +11:00
|
|
|
.muted-hint.center-text
|
2020-04-03 22:06:34 +11:00
|
|
|
= t 'admin.action_logs.empty'
|
|
|
|
- else
|
2022-01-17 19:41:33 +11:00
|
|
|
.report-notes
|
2021-03-07 17:06:56 +11:00
|
|
|
= render partial: 'action_log', collection: @action_logs
|
2017-11-24 12:05:53 +11:00
|
|
|
|
|
|
|
= paginate @action_logs
|