diff --git a/app/views/import/source_users/_accept_invite.html.haml b/app/views/import/source_users/_accept_invite.html.haml index 8f30ffb39f9fceea24e79fde0a21dfd84c990284..18f267f3359bde77114888ed2b378314ea07c2c3 100644 --- a/app/views/import/source_users/_accept_invite.html.haml +++ b/app/views/import/source_users/_accept_invite.html.haml @@ -1,3 +1,5 @@ +- destination_group = current_user.can?(:read_group, source_user.namespace) ? link_to(source_user.namespace.name, group_path(source_user.namespace)) : source_user.namespace.name + = render Pajamas::AlertComponent.new(variant: :success, title: s_('UserMapping|Reassignment approved'), alert_options: { class: 'gl-mt-4' }) do |c| - c.with_body do = safe_format(s_('UserMapping|You have approved the reassignment of contributions from %{strong_open}%{source_user_name} (@%{source_username})%{strong_close} on %{strong_open}%{source_hostname}%{strong_close} to yourself on the group %{strong_open}%{destination_group}%{strong_close}. Reassignment processing is in progress.'), @@ -5,7 +7,7 @@ source_user_name: source_user.source_name, source_username: source_user.source_username, source_hostname: source_user.source_hostname, - destination_group: link_to(source_user.namespace.name, group_path(source_user.namespace))) + destination_group: destination_group) - c.with_actions do = render Pajamas::ButtonComponent.new(variant: :default, href: help_page_path('user/project/import/index.md', anchor: 'accept-contribution-reassignment'),