diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-12 03:09:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-12 03:09:44 +0300 |
commit | 88544d284c0a25d45ea51c1817fcab1c7e99afe7 (patch) | |
tree | 7ae1c1fb6982eadb803de5f80e069fac8574e84d /app/helpers/groups_helper.rb | |
parent | 15f6e7bab546b32b7ada8aa2019b06b7bda12c1d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r-- | app/helpers/groups_helper.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index c9ad48fb1fc..d287d430bc4 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -94,12 +94,19 @@ module GroupsHelper else full_title << breadcrumb_list_item(group_title_link(parent, hidable: false)) end + + push_to_schema_breadcrumb(simple_sanitize(parent.name), group_path(parent)) end full_title << render("layouts/nav/breadcrumbs/collapsed_dropdown", location: :before, title: _("Show parent subgroups")) full_title << breadcrumb_list_item(group_title_link(group)) - full_title << ' · '.html_safe + link_to(simple_sanitize(name), url, class: 'group-path breadcrumb-item-text js-breadcrumb-item-text') if name + push_to_schema_breadcrumb(simple_sanitize(group.name), group_path(group)) + + if name + full_title << ' · '.html_safe + link_to(simple_sanitize(name), url, class: 'group-path breadcrumb-item-text js-breadcrumb-item-text') + push_to_schema_breadcrumb(simple_sanitize(name), url) + end full_title.join.html_safe end |