mirror of
https://github.com/funamitech/mastodon
synced 2024-12-03 01:09:08 +09:00
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
- content_for :page_title do
|
|
= t('admin.action_logs.title')
|
|
|
|
= form_with url: admin_action_logs_url, method: :get, class: :simple_form do |form|
|
|
= 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
|
|
= form.select :account_id,
|
|
options_from_collection_for_select(@auditable_accounts, :id, :username, params[:account_id]),
|
|
prompt: I18n.t('admin.accounts.moderation.all')
|
|
|
|
.filter-subset.filter-subset--with-select
|
|
%strong= t('admin.action_logs.filter_by_action')
|
|
.input.select.optional
|
|
= form.select :action_type,
|
|
options_for_select(sorted_action_log_types, params[:action_type]),
|
|
prompt: I18n.t('admin.accounts.moderation.all')
|
|
|
|
- if @action_logs.empty?
|
|
.muted-hint.center-text
|
|
= t 'admin.action_logs.empty'
|
|
- else
|
|
.report-notes
|
|
= render partial: 'action_log', collection: @action_logs
|
|
|
|
= paginate @action_logs
|