where i deviate from standard mastodon assets
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.

show.html.haml 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. - content_for :page_title do
  2. = t('settings.relationships')
  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. .filter-subset
  11. %strong= t 'relationships.status'
  12. %ul
  13. %li= filter_link_to t('generic.all'), status: nil
  14. %li= filter_link_to t('relationships.primary'), status: 'primary'
  15. %li= filter_link_to t('relationships.moved'), status: 'moved'
  16. .filter-subset
  17. %strong= t 'relationships.activity'
  18. %ul
  19. %li= filter_link_to t('generic.all'), activity: nil
  20. %li= filter_link_to t('relationships.dormant'), activity: 'dormant'
  21. .filter-subset
  22. %strong= t 'generic.order_by'
  23. %ul
  24. %li= filter_link_to t('relationships.most_recent'), order: nil
  25. %li= filter_link_to t('relationships.last_active'), order: 'active'
  26. = form_for(@form, url: relationships_path, method: :patch) do |f|
  27. = hidden_field_tag :page, params[:page] || 1
  28. - RelationshipFilter::KEYS.each do |key|
  29. = hidden_field_tag key, params[key] if params[key].present?
  30. .batch-table
  31. .batch-table__toolbar
  32. %label.batch-table__toolbar__select.batch-checkbox-all
  33. = check_box_tag :batch_checkbox_all, nil, false
  34. .batch-table__toolbar__actions
  35. = f.button safe_join([fa_icon('user-times'), t('relationships.remove_selected_follows')]), name: :unfollow, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') } unless followed_by_relationship?
  36. = f.button safe_join([fa_icon('trash'), t('relationships.remove_selected_followers')]), name: :remove_from_followers, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') } unless following_relationship?
  37. = f.button safe_join([fa_icon('trash'), t('relationships.remove_selected_domains')]), name: :block_domains, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') } if followed_by_relationship?
  38. .batch-table__body
  39. - if @accounts.empty?
  40. = nothing_here 'nothing-here--under-tabs'
  41. - else
  42. = render partial: 'account', collection: @accounts, locals: { f: f }
  43. = paginate @accounts