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.

49 lines
1.4 KiB

  1. - content_for :page_title do
  2. Accounts
  3. .filters
  4. .filter-subset
  5. %strong Location
  6. %ul
  7. %li= filter_link_to 'All', local: nil, remote: nil
  8. %li= filter_link_to 'Local', local: '1', remote: nil
  9. %li= filter_link_to 'Remote', remote: '1', local: nil
  10. .filter-subset
  11. %strong Moderation
  12. %ul
  13. %li= filter_link_to 'All', silenced: nil, suspended: nil
  14. %li= filter_link_to 'Silenced', silenced: '1'
  15. %li= filter_link_to 'Suspended', suspended: '1'
  16. .filter-subset
  17. %strong Order
  18. %ul
  19. %li= filter_link_to 'Alphabetic', recent: nil
  20. %li= filter_link_to 'Most recent', recent: '1'
  21. %table.table
  22. %thead
  23. %tr
  24. %th Username
  25. %th Domain
  26. %th= fa_icon 'paper-plane-o'
  27. %th
  28. %tbody
  29. - @accounts.each do |account|
  30. %tr
  31. %td= account.username
  32. %td
  33. - unless account.local?
  34. = link_to account.domain, admin_accounts_path(by_domain: account.domain)
  35. %td
  36. - if account.local?
  37. Local
  38. - elsif account.subscribed?
  39. %i.fa.fa-check
  40. - else
  41. %i.fa.fa-times
  42. %td
  43. = table_link_to 'circle', 'Web', web_path("accounts/#{account.id}")
  44. = table_link_to 'globe', 'Public', TagManager.instance.url_for(account)
  45. = table_link_to 'pencil', 'Edit', admin_account_path(account.id)
  46. = will_paginate @accounts, pagination_options