Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-25 00:09:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-25 00:09:08 +0300
commite09f6bdfd191f0cf8e54f0bc272e4e0635990ed9 (patch)
tree0791fa74b2321e5f815458e35615cfbfacbe231b /lib
parent8015f09545c35b833f4955fc2e0b8f1a3214cbcb (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/regex.rb5
-rw-r--r--lib/sidebars/groups/menus/customer_relations_menu.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb
index 205106afddb..50ac90cb449 100644
--- a/lib/gitlab/regex.rb
+++ b/lib/gitlab/regex.rb
@@ -481,6 +481,11 @@ module Gitlab
"can contain only lowercase letters, digits, '_' and '-'. " \
"Must start with a letter, and cannot end with '-' or '_'"
end
+
+ # One or more `part`s, separated by separator
+ def sep_by_1(separator, part)
+ %r(#{part} (#{separator} #{part})*)x
+ end
end
end
diff --git a/lib/sidebars/groups/menus/customer_relations_menu.rb b/lib/sidebars/groups/menus/customer_relations_menu.rb
index 0aaa6ec45f1..e0772cfe403 100644
--- a/lib/sidebars/groups/menus/customer_relations_menu.rb
+++ b/lib/sidebars/groups/menus/customer_relations_menu.rb
@@ -35,7 +35,7 @@ module Sidebars
::Sidebars::MenuItem.new(
title: _('Contacts'),
link: group_crm_contacts_path(context.group),
- active_routes: { path: 'groups/crm#contacts' },
+ active_routes: { controller: 'groups/crm/contacts' },
item_id: :crm_contacts
)
end
@@ -44,7 +44,7 @@ module Sidebars
::Sidebars::MenuItem.new(
title: _('Organizations'),
link: group_crm_organizations_path(context.group),
- active_routes: { path: 'groups/crm#organizations' },
+ active_routes: { controller: 'groups/crm/organizations' },
item_id: :crm_organizations
)
end