Reduce long lines in `relationships/show` view (#32922)

pull/32330/head
Matt Jankowski 2024-11-18 04:23:07 -05:00 committed by GitHub
parent be413d67de
commit 16addf47c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 4 deletions

View File

@ -42,13 +42,33 @@
%label.batch-table__toolbar__select.batch-checkbox-all
= check_box_tag :batch_checkbox_all, nil, false
.batch-table__toolbar__actions
= f.button safe_join([material_symbol('person_add'), t('relationships.follow_selected_followers')]), name: :follow, class: 'table-action-link', type: :submit, data: { confirm: t('relationships.confirm_follow_selected_followers') } if followed_by_relationship? && !mutual_relationship?
- if followed_by_relationship? && !mutual_relationship?
= f.button safe_join([material_symbol('person_add'), t('relationships.follow_selected_followers')]),
class: 'table-action-link',
data: { confirm: t('relationships.confirm_follow_selected_followers') },
name: :follow,
type: :submit
= f.button safe_join([material_symbol('person_remove'), t('relationships.remove_selected_follows')]), name: :unfollow, class: 'table-action-link', type: :submit, data: { confirm: t('relationships.confirm_remove_selected_follows') } unless followed_by_relationship?
- unless followed_by_relationship?
= f.button safe_join([material_symbol('person_remove'), t('relationships.remove_selected_follows')]),
class: 'table-action-link',
data: { confirm: t('relationships.confirm_remove_selected_follows') },
name: :unfollow,
type: :submit
= f.button safe_join([material_symbol('delete'), t('relationships.remove_selected_followers')]), name: :remove_from_followers, class: 'table-action-link', type: :submit, data: { confirm: t('relationships.confirm_remove_selected_followers') } unless following_relationship?
- unless following_relationship?
= f.button safe_join([material_symbol('delete'), t('relationships.remove_selected_followers')]),
class: 'table-action-link',
data: { confirm: t('relationships.confirm_remove_selected_followers') },
name: :remove_from_followers,
type: :submit
= f.button safe_join([material_symbol('delete'), t('relationships.remove_selected_domains')]), name: :remove_domains_from_followers, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') } if followed_by_relationship?
- if followed_by_relationship?
= f.button safe_join([material_symbol('delete'), t('relationships.remove_selected_domains')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
name: :remove_domains_from_followers,
type: :submit
.batch-table__body
- if @accounts.empty?
= nothing_here 'nothing-here--under-tabs'