Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_group.html.haml « groups « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5fe8f9b4bbcb56e8e0ee3ae9c58369e95155b0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- group = local_assigns.fetch(:group)
- css_class = 'no-description' if group.description.blank?

%li.group-row.py-3{ class: css_class, data: { qa_selector: 'group_row_content' } }
  .controls
    = link_to _('Edit'), admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn'
    = link_to _('Delete'), [:admin, group], data: { confirm: _("Are you sure you want to remove %{group_name}?") % { group_name: group.name } }, method: :delete, class: 'btn btn-remove'
  .stats
    %span.badge.badge-pill
      = storage_counter(group.storage_size)

    = render_if_exists 'admin/namespace_plan_badge', namespace: group
    = render_if_exists 'admin/groups/marked_for_deletion_badge', group: group

    %span
      = icon('bookmark')
      = number_with_delimiter(group.projects.count)

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

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

  .avatar-container.rect-avatar.s40
    = group_icon(group, class: "avatar s40 d-none d-sm-block")
  .title
    = link_to [:admin, group], class: 'group-name', data: { qa_selector: 'group_name_link' } do
      = group.full_name

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