text=s_("GroupSettings|remove the share lock from %{ancestor_group_name}")%{ancestor_group_name: ancestor.name}
text=s_("GroupSettings|remove the share with group lock from %{ancestor_group_name}")%{ancestor_group_name: ancestor.name}
ifcan?(current_user,:admin_group,ancestor)
link_totext,edit_group_path(ancestor)
else
...
...
@@ -129,11 +129,11 @@ module GroupsHelper
end
defancestor_locked_but_you_can_override(group)
s_("GroupSettings|This setting is applied on %{ancestor_group}. You can override the setting or %{remove_ancestor_share_lock}.").html_safe%{ancestor_group: ancestor_group(group),remove_ancestor_share_lock: remove_the_share_lock_from_ancestor(group)}
s_("GroupSettings|This setting is applied on %{ancestor_group}. You can override the setting or %{remove_ancestor_share_with_group_lock}.").html_safe%{ancestor_group: ancestor_group(group),remove_ancestor_share_with_group_lock: remove_the_share_with_group_lock_from_ancestor(group)}
end
defancestor_locked_so_ask_the_owner(group)
s_("GroupSettings|This setting is applied on %{ancestor_group}. To share projects in this group with another group, ask the owner to override the setting or %{remove_ancestor_share_lock}.").html_safe%{ancestor_group: ancestor_group(group),remove_ancestor_share_lock: remove_the_share_lock_from_ancestor(group)}
s_("GroupSettings|This setting is applied on %{ancestor_group}. To share projects in this group with another group, ask the owner to override the setting or %{remove_ancestor_share_with_group_lock}.").html_safe%{ancestor_group: ancestor_group(group),remove_ancestor_share_with_group_lock: remove_the_share_with_group_lock_from_ancestor(group)}
group.errors.add(:share_with_group_lock,s_('GroupSettings|cannot be disabled when the parent group Share with group lock is enabled, except by the owner of the parent group'))
group.errors.add(:share_with_group_lock,s_('GroupSettings|cannot be disabled when the parent group "Share with group lock" is enabled, except by the owner of the parent group'))
default_help: "This setting will be applied to all subgroups unless overridden by a group owner",
ancestor_locked_but_you_can_override: /This setting is applied on <a .+>.+<\/a>\. You can override the setting or .+/,
ancestor_locked_so_ask_the_owner: /This setting is applied on .+\. To share projects in this group with another group, ask the owner to override the setting or remove the share lock from .+/,
ancestor_locked_so_ask_the_owner: /This setting is applied on .+\. To share projects in this group with another group, ask the owner to override the setting or remove the share with group lock from .+/,
ancestor_locked_and_has_been_overridden: /This setting is applied on .+ and has been overridden on this subgroup/
expect(subgroup.errors.full_messages.first).tomatch(/cannot be disabled when the parent group Share lock is enabled, except by the owner of the parent group/)
expect(subgroup.errors.full_messages.first).tomatch(/cannot be disabled when the parent group "Share with group lock" is enabled, except by the owner of the parent group/)