where i deviate from standard mastodon assets
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.

index.html.haml 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. - content_for :page_title do
  2. = t('admin.accounts.title')
  3. .filters
  4. .filter-subset
  5. %strong= t('admin.accounts.location.title')
  6. %ul
  7. %li= filter_link_to t('admin.accounts.location.local'), remote: nil
  8. %li= filter_link_to t('admin.accounts.location.remote'), remote: '1'
  9. .filter-subset
  10. %strong= t('admin.accounts.moderation.title')
  11. %ul
  12. %li= link_to safe_join([t('admin.accounts.moderation.pending'), "(#{number_with_delimiter(User.pending.count)})"], ' '), admin_pending_accounts_path
  13. %li= filter_link_to t('admin.accounts.moderation.active'), silenced: nil, suspended: nil, pending: nil
  14. %li= filter_link_to t('admin.accounts.moderation.silenced'), silenced: '1', suspended: nil, pending: nil
  15. %li= filter_link_to t('admin.accounts.moderation.suspended'), suspended: '1', silenced: nil, pending: nil
  16. .filter-subset
  17. %strong= t('admin.accounts.role')
  18. %ul
  19. %li= filter_link_to t('admin.accounts.moderation.all'), staff: nil
  20. %li= filter_link_to t('admin.accounts.roles.staff'), staff: '1'
  21. = form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do
  22. .fields-group
  23. - AccountFilter::KEYS.each do |key|
  24. - if params[key].present?
  25. = hidden_field_tag key, params[key]
  26. - %i(username by_domain display_name email ip).each do |key|
  27. - unless key == :by_domain && params[:remote].blank?
  28. .input.string.optional
  29. = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")
  30. .actions
  31. %button= t('admin.accounts.search')
  32. = link_to t('admin.accounts.reset'), admin_accounts_path, class: 'button negative'
  33. .table-wrapper
  34. %table.table
  35. %thead
  36. %tr
  37. %th= t('admin.accounts.username')
  38. %th= t('admin.accounts.role')
  39. %th= t('admin.accounts.most_recent_ip')
  40. %th= t('admin.accounts.most_recent_activity')
  41. %th
  42. %tbody
  43. = render @accounts
  44. = paginate @accounts