From b302b9202b17abe9834460acf589b512579766d6 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 23 Dec 2016 00:04:52 +0100 Subject: Add page for authorizing/rejecting follow requests --- app/helpers/admin/accounts_helper.rb | 4 ++-- app/helpers/follow_requests_helper.rb | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 app/helpers/follow_requests_helper.rb (limited to 'app/helpers') diff --git a/app/helpers/admin/accounts_helper.rb b/app/helpers/admin/accounts_helper.rb index 57cd972fa..c539229b3 100644 --- a/app/helpers/admin/accounts_helper.rb +++ b/app/helpers/admin/accounts_helper.rb @@ -9,7 +9,7 @@ module Admin::AccountsHelper link_to text, filter_params(more_params), class: params.merge(more_params).compact == params.compact ? 'selected' : '' end - def table_link_to(icon, text, path) - link_to safe_join([fa_icon(icon), text]), path, class: 'table-action-link' + def table_link_to(icon, text, path, options = {}) + link_to safe_join([fa_icon(icon), text]), path, options.merge(class: 'table-action-link') end end diff --git a/app/helpers/follow_requests_helper.rb b/app/helpers/follow_requests_helper.rb new file mode 100644 index 000000000..cfd350e53 --- /dev/null +++ b/app/helpers/follow_requests_helper.rb @@ -0,0 +1,2 @@ +module FollowRequestsHelper +end -- cgit