2017-11-23 20:05:53 -05:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.action_logs.title')
|
|
|
|
|
2020-04-03 07:06:34 -04:00
|
|
|
- content_for :header_tags do
|
2020-11-06 05:56:31 -05:00
|
|
|
= javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
|
2020-04-03 07:06:34 -04: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
|
|
|
|
= select_tag :account_id, options_from_collection_for_select(Account.joins(:user).merge(User.staff), :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
|
|
|
|
= 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')
|
|
|
|
|
|
|
|
- if @action_logs.empty?
|
|
|
|
%div.muted-hint.center-text
|
|
|
|
= t 'admin.action_logs.empty'
|
|
|
|
- else
|
|
|
|
.announcements-list
|
2021-03-07 01:06:56 -05:00
|
|
|
= render partial: 'action_log', collection: @action_logs
|
2017-11-23 20:05:53 -05:00
|
|
|
|
|
|
|
= paginate @action_logs
|