You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

  1. - content_for :page_title do
  2. = t('admin.action_logs.title')
  3. - content_for :header_tags do
  4. = javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
  5. = form_tag admin_action_logs_url, method: 'GET', class: 'simple_form' do
  6. = hidden_field_tag :target_account_id, params[:target_account_id] if params[:target_account_id].present?
  7. .filters
  8. .filter-subset.filter-subset--with-select
  9. %strong= t('admin.action_logs.filter_by_user')
  10. .input.select.optional
  11. = 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')
  12. .filter-subset.filter-subset--with-select
  13. %strong= t('admin.action_logs.filter_by_action')
  14. .input.select.optional
  15. = 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')
  16. - if @action_logs.empty?
  17. %div.muted-hint.center-text
  18. = t 'admin.action_logs.empty'
  19. - else
  20. .announcements-list
  21. = render @action_logs
  22. = paginate @action_logs