index.html.haml 1.1 KB

12345678910111213141516171819202122232425
  1. - content_for :page_title do
  2. = t('admin.action_logs.title')
  3. = form_tag admin_action_logs_url, method: 'GET', class: 'simple_form' do
  4. = hidden_field_tag :target_account_id, params[:target_account_id] if params[:target_account_id].present?
  5. .filters
  6. .filter-subset.filter-subset--with-select
  7. %strong= t('admin.action_logs.filter_by_user')
  8. .input.select.optional
  9. = select_tag :account_id, options_from_collection_for_select(@auditable_accounts, :id, :username, params[:account_id]), prompt: I18n.t('admin.accounts.moderation.all')
  10. .filter-subset.filter-subset--with-select
  11. %strong= t('admin.action_logs.filter_by_action')
  12. .input.select.optional
  13. = 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')
  14. - if @action_logs.empty?
  15. .muted-hint.center-text
  16. = t 'admin.action_logs.empty'
  17. - else
  18. .report-notes
  19. = render partial: 'action_log', collection: @action_logs
  20. = paginate @action_logs