The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

51 lines
1.9 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.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= filter_link_to t('admin.accounts.moderation.pending'), pending: '1', silenced: nil, suspended: nil
  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. - Admin::FilterHelper::ACCOUNT_FILTERS.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