1fb499de27
Allows users to leave a project/group that they have been added to. Add function to leave a namespace by url param If the `leave` param is present on a project/group show page, click the leave link.
8 lines
437 B
Text
8 lines
437 B
Text
<% source_type = member_source.model_name.singular %>
|
|
<%= _('You have been granted %{access_level} access to the %{source_name} %{source_type}.') % { access_level: member.human_access, source_name: member_source.human_name, source_type: source_type } %>
|
|
|
|
<%= member_source.web_url %>
|
|
|
|
<%= _('If this was a mistake you can leave the %{source_type}.') % { source_type: source_type } %>
|
|
|
|
<%= polymorphic_url([member_source], leave: 1) %>
|