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.

48 lines
1.7 KiB

  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.all'), local: nil, remote: nil
  8. %li= filter_link_to t('admin.accounts.location.local'), local: '1', remote: nil
  9. %li= filter_link_to t('admin.accounts.location.remote'), remote: '1', local: nil
  10. .filter-subset
  11. %strong= t('admin.accounts.moderation.title')
  12. %ul
  13. %li= filter_link_to t('admin.accounts.moderation.all'), silenced: nil, suspended: nil
  14. %li= filter_link_to t('admin.accounts.moderation.silenced'), silenced: '1'
  15. %li= filter_link_to t('admin.accounts.moderation.suspended'), suspended: '1'
  16. .filter-subset
  17. %strong= t('admin.accounts.order.title')
  18. %ul
  19. %li= filter_link_to t('admin.accounts.order.alphabetic'), recent: nil
  20. %li= filter_link_to t('admin.accounts.order.most_recent'), recent: '1'
  21. = form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do
  22. .fields-group
  23. - Admin::FilterHelper::ACCOUNT_FILTERS.each do |key|
  24. - if params[key].present?
  25. = hidden_field_tag key, params[key]
  26. - %i(username display_name email ip).each do |key|
  27. .input.string.optional
  28. = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}")
  29. .actions
  30. %button= t('admin.accounts.search')
  31. = link_to t('admin.accounts.reset'), admin_accounts_path, class: 'button negative'
  32. %table.table
  33. %thead
  34. %tr
  35. %th= t('admin.accounts.username')
  36. %th= t('admin.accounts.domain')
  37. %th= t('admin.accounts.confirmed')
  38. %th= fa_icon 'paper-plane-o'
  39. %th
  40. %tbody
  41. = render @accounts
  42. = paginate @accounts