about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-11-13 00:58:00 +0900
committerGitHub <noreply@github.com>2020-11-12 16:58:00 +0100
commit2b1a6e734ff42c17fb971cf909509b6b2ad84879 (patch)
treed94c398b4655d790d3d63faf277a1a0ef5e27c0e /app/views
parent4790a126bebddd83cbaf1a8436611536dcc417a0 (diff)
Add follow selected followers button (#15148)
* Add follow selected followers button

* Fix unused variable

* Fix i18n normalize
Diffstat (limited to 'app/views')
-rw-r--r--app/views/relationships/show.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/relationships/show.html.haml b/app/views/relationships/show.html.haml
index 4b1e4fd63..c82e639e0 100644
--- a/app/views/relationships/show.html.haml
+++ b/app/views/relationships/show.html.haml
@@ -42,6 +42,8 @@
       %label.batch-table__toolbar__select.batch-checkbox-all
         = check_box_tag :batch_checkbox_all, nil, false
       .batch-table__toolbar__actions
+        = f.button safe_join([fa_icon('user-plus'), t('relationships.follow_selected_followers')]), name: :follow, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') } if followed_by_relationship? && !mutual_relationship?
+
         = 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?
 
         = 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?