diff options
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r-- | app/helpers/groups_helper.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index eeeffb7b3ae..62f0c68b0c8 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -63,7 +63,7 @@ module GroupsHelper end def group_open_issues_count(group) - if Feature.enabled?(:cached_sidebar_open_issues_count, group) + if Feature.enabled?(:cached_sidebar_open_issues_count, group, default_enabled: :yaml) cached_open_group_issues_count(group) else number_with_delimiter(group_issues_count(state: 'opened')) @@ -99,6 +99,12 @@ module GroupsHelper .count end + def group_dependency_proxy_url(group) + # The namespace path can include uppercase letters, which + # Docker doesn't allow. The proxy expects it to be downcased. + "#{group_url(group).downcase}#{DependencyProxy::URL_SUFFIX}" + end + def group_icon_url(group, options = {}) if group.is_a?(String) group = Group.find_by_full_path(group) |