mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 21:57:19 +00:00
Reduce long lines in relationships/show
view (#32922)
This commit is contained in:
parent
be413d67de
commit
16addf47c7
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue