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.

43 lines
1.1 KiB

  1. %ul.filters
  2. %li= link_to 'Local', admin_accounts_path(local: '1')
  3. %li= link_to 'Remote', admin_accounts_path(remote: '1')
  4. %li= link_to 'Silenced', admin_accounts_path(silenced: '1')
  5. %li= link_to 'Suspended', admin_accounts_path(suspended: '1')
  6. %li= link_to 'Most recent', admin_accounts_path(recent: '1')
  7. %table.table
  8. %thead
  9. %tr
  10. %th Username
  11. %th Domain
  12. %th Subscribed
  13. %th Silenced
  14. %th Suspended
  15. %th
  16. %tbody
  17. - @accounts.each do |account|
  18. %tr
  19. %td= account.username
  20. %td
  21. - unless account.local?
  22. = link_to account.domain, admin_accounts_path(by_domain: account.domain)
  23. %td
  24. - if account.local?
  25. Local
  26. - elsif account.subscribed?
  27. %i.fa.fa-check
  28. - else
  29. %i.fa.fa-times
  30. %td
  31. - if account.silenced?
  32. %i.fa.fa-check
  33. - else
  34. %i.fa.fa-times
  35. %td
  36. - if account.suspended?
  37. %i.fa.fa-check
  38. - else
  39. %i.fa.fa-times
  40. %td= link_to 'Edit', admin_account_path(account.id)
  41. = will_paginate @accounts, pagination_options