2017-12-07 04:11:41 -05:00
|
|
|
- user = local_assigns.fetch(:user, current_user)
|
|
|
|
- access = user&.max_member_access_for_group(group.id)
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2020-06-16 23:08:38 -04:00
|
|
|
%li.group-row.py-3.gl-align-items-center{ class: "gl-display-flex!#{' no-description' if group.description.blank?}" }
|
|
|
|
.avatar-container.rect-avatar.s40.gl-flex-shrink-0
|
|
|
|
= link_to group do
|
|
|
|
= group_icon(group, class: "avatar s40")
|
|
|
|
.gl-min-w-0.gl-flex-grow-1
|
|
|
|
.title
|
|
|
|
= link_to group.full_name, group, class: 'group-name'
|
|
|
|
|
|
|
|
- if access&.nonzero?
|
|
|
|
%span.user-access-role= Gitlab::Access.human_access(access)
|
|
|
|
|
|
|
|
- if group.description.present?
|
|
|
|
.description
|
|
|
|
= markdown_field(group, :description)
|
|
|
|
|
2020-08-17 17:09:56 -04:00
|
|
|
.stats.gl-text-gray-500.gl-flex-shrink-0
|
2020-06-16 23:08:38 -04:00
|
|
|
%span.gl-ml-5
|
2020-08-10 14:09:54 -04:00
|
|
|
= sprite_icon('bookmark', css_class: 'gl-vertical-align-text-bottom')
|
2017-03-24 16:00:46 -04:00
|
|
|
= number_with_delimiter(group.projects.non_archived.count)
|
2016-02-02 17:31:46 -05:00
|
|
|
|
2020-06-16 23:08:38 -04:00
|
|
|
%span.gl-ml-5
|
2020-08-10 14:09:54 -04:00
|
|
|
= sprite_icon('users', css_class: 'gl-vertical-align-text-bottom')
|
2016-02-02 18:07:11 -05:00
|
|
|
= number_with_delimiter(group.users.count)
|
2016-02-02 17:31:46 -05:00
|
|
|
|
2020-06-16 23:08:38 -04:00
|
|
|
%span.gl-ml-5.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
|
2020-07-22 20:09:43 -04:00
|
|
|
= visibility_level_icon(group.visibility_level)
|