BigW Consortium Gitlab

_group.html.haml 926 Bytes
Newer Older
1 2
- user = local_assigns.fetch(:user, current_user)
- access = user&.max_member_access_for_group(group.id)
3

4
%li.group-row{ class: ('no-description' if group.description.blank?) }
5 6
  .stats
    %span
7
      = icon('bookmark')
8
      = number_with_delimiter(group.projects.non_archived.count)
9 10 11

    %span
      = icon('users')
12
      = number_with_delimiter(group.users.count)
13

14
    %span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
15 16
      = visibility_level_icon(group.visibility_level, fw: false)

17
  .avatar-container.s40
18
    = link_to group do
19
      = group_icon(group, class: "avatar s40 hidden-xs")
20
  .title
21
    = link_to group.full_name, group, class: 'group-name'
22

23 24
    - if access&.nonzero?
      %span.user-access-role= Gitlab::Access.human_access(access)
25

26
  - if group.description.present?
27
    .description
28
      = markdown_field(group, :description)