mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 12:48:07 +01:00
92c06a1113
Conflicts: - `app/controllers/admin/base_controller.rb`: Minor conflict caused by glitch-soc's theming system. - `app/javascript/mastodon/initial_state.js`: Minor conflict caused by glitch-soc making use of max_toot_chars. - `app/models/form/admin_settings.rb`: Minor conflict caused by glitch-soc's theming system. - `app/models/trends.rb`: Minor conflict caused by glitch-soc having more granular notification settings for trends. - `app/views/admin/accounts/index.html.haml`: Minor conflict caused by glitch-soc's theming system. - `app/views/admin/instances/show.html.haml`: Minor conflict caused by glitch-soc's theming system. - `app/views/layouts/application.html.haml`: Minor conflict caused by glitch-soc's theming system. - `app/views/settings/preferences/notifications/show.html.haml`: Minor conflict caused by glitch-soc having more granular notification settings for trends. - `config/navigation.rb`: Minor conflict caused by glitch-soc having additional navigation items for the theming system while upstream slightly changed every line.
58 lines
3.1 KiB
Text
58 lines
3.1 KiB
Text
- content_for :page_title do
|
|
= t('admin.accounts.title')
|
|
|
|
= form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do
|
|
.filters
|
|
.filter-subset.filter-subset--with-select
|
|
%strong= t('admin.accounts.location.title')
|
|
.input.select.optional
|
|
= select_tag :origin, options_for_select([[t('admin.accounts.location.local'), 'local'], [t('admin.accounts.location.remote'), 'remote']], params[:origin]), prompt: I18n.t('generic.all')
|
|
.filter-subset.filter-subset--with-select
|
|
%strong= t('admin.accounts.moderation.title')
|
|
.input.select.optional
|
|
= select_tag :status, options_for_select([[t('admin.accounts.moderation.active'), 'active'], [t('admin.accounts.moderation.silenced'), 'silenced'], [t('admin.accounts.moderation.suspended'), 'suspended'], [safe_join([t('admin.accounts.moderation.pending'), "(#{number_with_delimiter(User.pending.count)})"], ' '), 'pending']], params[:status]), prompt: I18n.t('generic.all')
|
|
.filter-subset.filter-subset--with-select
|
|
%strong= t('admin.accounts.role')
|
|
.input.select.optional
|
|
= select_tag :role_ids, options_from_collection_for_select(UserRole.assignable, :id, :name, params[:role_ids]), prompt: I18n.t('admin.accounts.moderation.all')
|
|
.filter-subset.filter-subset--with-select
|
|
%strong= t 'generic.order_by'
|
|
.input.select
|
|
= select_tag :order, options_for_select([[t('relationships.most_recent'), nil], [t('relationships.last_active'), 'active']], params[:order])
|
|
|
|
.fields-group
|
|
- %i(username by_domain display_name email ip).each do |key|
|
|
- unless key == :by_domain && params[:origin] != 'remote'
|
|
.input.string.optional
|
|
= text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")
|
|
|
|
.actions
|
|
%button.button= t('admin.accounts.search')
|
|
= link_to t('admin.accounts.reset'), admin_accounts_path, class: 'button negative'
|
|
|
|
%hr.spacer/
|
|
|
|
= form_for(@form, url: batch_admin_accounts_path) do |f|
|
|
= hidden_field_tag :page, params[:page] || 1
|
|
|
|
- AccountFilter::KEYS.each do |key|
|
|
= hidden_field_tag key, params[key] if params[key].present?
|
|
|
|
.batch-table
|
|
.batch-table__toolbar
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
|
.batch-table__toolbar__actions
|
|
- if @accounts.any? { |account| account.user_pending? }
|
|
= f.button safe_join([fa_icon('check'), t('admin.accounts.approve')]), name: :approve, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
|
|
|
= f.button safe_join([fa_icon('times'), t('admin.accounts.reject')]), name: :reject, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
|
|
|
= f.button safe_join([fa_icon('lock'), t('admin.accounts.perform_full_suspension')]), name: :suspend, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
|
.batch-table__body
|
|
- if @accounts.empty?
|
|
= nothing_here 'nothing-here--under-tabs'
|
|
- else
|
|
= render partial: 'account', collection: @accounts, locals: { f: f }
|
|
|
|
= paginate @accounts
|