2018-03-17 18:26:18 +05:30
|
|
|
- user = local_assigns.fetch(:user, current_user)
|
|
|
|
- access = user&.max_member_access_for_group(group.id)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%li.group-row{ class: ('no-description' if group.description.blank?) }
|
2016-04-02 18:10:28 +05:30
|
|
|
.stats
|
|
|
|
%span
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon('bookmark')
|
2017-08-17 22:00:37 +05:30
|
|
|
= number_with_delimiter(group.projects.non_archived.count)
|
2016-04-02 18:10:28 +05:30
|
|
|
|
|
|
|
%span
|
|
|
|
= icon('users')
|
|
|
|
= number_with_delimiter(group.users.count)
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
%span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
|
2016-06-02 11:05:42 +05:30
|
|
|
= visibility_level_icon(group.visibility_level, fw: false)
|
|
|
|
|
2019-05-30 16:15:17 +05:30
|
|
|
.avatar-container.s40
|
2017-08-17 22:00:37 +05:30
|
|
|
= link_to group do
|
2018-11-08 19:23:39 +05:30
|
|
|
= group_icon(group, class: "avatar s40 d-none d-sm-block")
|
2016-06-02 11:05:42 +05:30
|
|
|
.title
|
2018-03-17 18:26:18 +05:30
|
|
|
= link_to group.full_name, group, class: 'group-name'
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- if access&.nonzero?
|
|
|
|
%span.user-access-role= Gitlab::Access.human_access(access)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
- if group.description.present?
|
2016-06-02 11:05:42 +05:30
|
|
|
.description
|
2016-11-03 12:29:30 +05:30
|
|
|
= markdown_field(group, :description)
|