index.html.haml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. - content_for :page_title do
  2. = t('admin.relationships.title', acct: @account.pretty_acct)
  3. .filters
  4. .filter-subset
  5. %strong= t 'relationships.relationship'
  6. %ul
  7. %li= filter_link_to t('relationships.following'), relationship: nil
  8. %li= filter_link_to t('relationships.followers'), relationship: 'followed_by'
  9. %li= filter_link_to t('relationships.mutual'), relationship: 'mutual'
  10. %li= filter_link_to t('relationships.invited'), relationship: 'invited'
  11. .filter-subset
  12. %strong= t('admin.accounts.location.title')
  13. %ul
  14. %li= filter_link_to t('admin.accounts.moderation.all'), location: nil
  15. %li= filter_link_to t('admin.accounts.location.local'), location: 'local'
  16. %li= filter_link_to t('admin.accounts.location.remote'), location: 'remote'
  17. .back-link
  18. = link_to admin_account_path(@account.id) do
  19. = fa_icon 'chevron-left fw'
  20. = t('admin.statuses.back_to_account')
  21. %hr.spacer/
  22. = form_for(@form, url: batch_admin_accounts_path) do |f|
  23. .batch-table
  24. .batch-table__toolbar
  25. %label.batch-table__toolbar__select.batch-checkbox-all
  26. = check_box_tag :batch_checkbox_all, nil, false
  27. .batch-table__toolbar__actions
  28. = f.button safe_join([fa_icon('lock'), t('admin.accounts.perform_full_suspension')]), name: :suspend, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
  29. .batch-table__body
  30. - if @accounts.empty?
  31. = nothing_here 'nothing-here--under-tabs'
  32. - else
  33. = render partial: 'admin/accounts/account', collection: @accounts, locals: { f: f }
  34. = paginate @accounts