Commit 2d3bbcf6 authored by Sheldon Led's avatar Sheldon Led

Update docs links of SaaS User Caps

parent b6792b4b
...@@ -12,7 +12,7 @@ module EE ...@@ -12,7 +12,7 @@ module EE
end end
def saas_user_caps_help_text(group) def saas_user_caps_help_text(group)
user_cap_docs_link_url = help_page_path("/user/admin_area/settings/sign_up_restrictions", anchor: "user-cap") user_cap_docs_link_url = help_page_path('user/group/index', anchor: 'user-cap-for-groups')
user_cap_docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: user_cap_docs_link_url } user_cap_docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: user_cap_docs_link_url }
html_escape(saas_user_caps_i18n_string(group)) % { user_cap_docs_link_start: user_cap_docs_link_start, user_cap_docs_link_end: '</a>'.html_safe } html_escape(saas_user_caps_i18n_string(group)) % { user_cap_docs_link_start: user_cap_docs_link_start, user_cap_docs_link_end: '</a>'.html_safe }
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
- root_namespace = namespace.root_ancestor - root_namespace = namespace.root_ancestor
- pending_users_link = pending_members_group_usage_quotas_path(root_namespace) - pending_users_link = pending_members_group_usage_quotas_path(root_namespace)
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">' - link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'
- user_caps_link_start = link_start.html_safe % { url: help_page_path('user/admin_area/settings/sign_up_restrictions', anchor: 'user-cap') } - user_caps_link_start = link_start.html_safe % { url: help_page_path('user/group/index', anchor: 'user-cap-for-groups') }
- users_pending_approval_link_start = link_start.html_safe % { url: help_page_path('user/admin_area/moderate_users') } - users_pending_approval_link_start = link_start.html_safe % { url: help_page_path('user/group/index', anchor: 'approve-pending-members-for-a-group') }
- link_end = '</a>'.html_safe - link_end = '</a>'.html_safe
.gl-py-5 .gl-py-5
......
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