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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 21:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 21:09:17 +0300
commit0eb4fd2f32e6804bc85868ba167170238e346279 (patch)
treec020e787ea29c77e1e9f53c21940f88a87a6e905 /app/views/admin/groups/show.html.haml
parent78d8830cec030ff12afed3c8ae1dddec454d0a24 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/admin/groups/show.html.haml')
-rw-r--r--app/views/admin/groups/show.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/admin/groups/show.html.haml b/app/views/admin/groups/show.html.haml
index 160c3b4d06d..91ccfb07f49 100644
--- a/app/views/admin/groups/show.html.haml
+++ b/app/views/admin/groups/show.html.haml
@@ -78,14 +78,15 @@
.card-footer
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
- - if @group.shared_projects.any?
+ - shared_projects = @group.shared_projects.sort_by(&:name)
+ - unless shared_projects.empty?
.card
.card-header
= _('Projects shared with %{group_name}') % { group_name: @group.name }
%span.badge.badge-pill
- #{@group.shared_projects.count}
+ #{shared_projects.size}
%ul.content-list
- - @group.shared_projects.sort_by(&:name).each do |project|
+ - shared_projects.each do |project|
%li
%strong
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]