BigW Consortium Gitlab

_group.html.haml 1.04 KB
Newer Older
1
- css_class = 'no-description' if group.description.blank?
2

3 4
%li.group-row{ class: css_class }
  .controls
5
    = link_to 'Edit', admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn'
6
    = link_to 'Delete', [:admin, group], data: { confirm: "Are you sure you want to remove #{group.name}?" }, method: :delete, class: 'btn btn-remove'
7
  .stats
8 9 10
    %span.badge
      = storage_counter(group.storage_size)

11 12 13 14 15 16 17 18
    %span
      = icon('bookmark')
      = number_with_delimiter(group.projects.count)

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

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

22
  .avatar-container.s40
23
    = image_tag group_icon(group), class: "avatar s40 hidden-xs"
24 25
  .title
    = link_to [:admin, group], class: 'group-name' do
26
      = group.full_name
27 28 29

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