Fix MembersHelper

parent f438a2aa
...@@ -11,17 +11,17 @@ module MembersHelper ...@@ -11,17 +11,17 @@ module MembersHelper
text = 'Are you sure you want to ' text = 'Are you sure you want to '
action = action =
if member.request? if member.request?
if member.user == user if member.user == user
'withdraw your access request for' 'withdraw your access request for'
else
"deny #{member.user.name}'s request to join"
end
elsif member.invite?
"revoke the invitation for #{member.invite_email} to join"
else else
"remove #{member.user.name} from" "deny #{member.user.name}'s request to join"
end end
elsif member.invite?
"revoke the invitation for #{member.invite_email} to join"
else
"remove #{member.user.name} from"
end
text << action << " the #{member.source.human_name} #{member.real_source_type.humanize(capitalize: false)}?" text << action << " the #{member.source.human_name} #{member.real_source_type.humanize(capitalize: false)}?"
end end
...@@ -39,8 +39,8 @@ module MembersHelper ...@@ -39,8 +39,8 @@ module MembersHelper
def filter_group_project_member_path(options = {}) def filter_group_project_member_path(options = {})
exist_opts = { exist_opts = {
search: params[:search], search: params[:search],
sort: params[:sort] sort: params[:sort]
} }
options = exist_opts.merge(options) options = exist_opts.merge(options)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment