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
|
|
|
|
2017-12-07 04:11:41 -05:00
|
|
|
%li.group-row{ class: ('no-description' if group.description.blank?) }
|
2016-02-02 17:31:46 -05:00
|
|
|
.stats
|
|
|
|
%span
|
2016-03-17 06:37:15 -04:00
|
|
|
= icon('bookmark')
|
2017-03-24 16:00:46 -04:00
|
|
|
= number_with_delimiter(group.projects.non_archived.count)
|
2016-02-02 17:31:46 -05:00
|
|
|
|
|
|
|
%span
|
|
|
|
= icon('users')
|
2016-02-02 18:07:11 -05:00
|
|
|
= number_with_delimiter(group.users.count)
|
2016-02-02 17:31:46 -05:00
|
|
|
|
2016-12-26 05:47:16 -05:00
|
|
|
%span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
|
2016-03-03 14:52:38 -05:00
|
|
|
= visibility_level_icon(group.visibility_level, fw: false)
|
|
|
|
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container.s40
|
2017-04-19 04:05:48 -04:00
|
|
|
= link_to group do
|
2018-04-09 17:50:40 -04:00
|
|
|
= group_icon(group, class: "avatar s40 d-none d-sm-block")
|
2016-03-18 14:02:08 -04:00
|
|
|
.title
|
2017-12-07 04:11:41 -05:00
|
|
|
= link_to group.full_name, group, class: 'group-name'
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2017-12-07 04:11:41 -05:00
|
|
|
- if access&.nonzero?
|
|
|
|
%span.user-access-role= Gitlab::Access.human_access(access)
|
2015-08-26 17:41:56 -04:00
|
|
|
|
2016-02-02 17:31:46 -05:00
|
|
|
- if group.description.present?
|
2016-02-26 09:02:34 -05:00
|
|
|
.description
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown_field(group, :description)
|