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.
 
 
 
 

62 line
1.6 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 Subscribed
  27. %th Silenced
  28. %th Suspended
  29. %th
  30. %tbody
  31. - @accounts.each do |account|
  32. %tr
  33. %td= account.username
  34. %td
  35. - unless account.local?
  36. = link_to account.domain, admin_accounts_path(by_domain: account.domain)
  37. %td
  38. - if account.local?
  39. Local
  40. - elsif account.subscribed?
  41. %i.fa.fa-check
  42. - else
  43. %i.fa.fa-times
  44. %td
  45. - if account.silenced?
  46. %i.fa.fa-check
  47. - else
  48. %i.fa.fa-times
  49. %td
  50. - if account.suspended?
  51. %i.fa.fa-check
  52. - else
  53. %i.fa.fa-times
  54. %td
  55. = table_link_to 'circle', 'Web', web_path("accounts/#{account.id}")
  56. = table_link_to 'globe', 'Public', TagManager.instance.url_for(account)
  57. = table_link_to 'pencil', 'Edit', admin_account_path(account.id)
  58. = will_paginate @accounts, pagination_options