BigW Consortium Gitlab

_group.html.haml 1.05 KB
Newer Older
1
- css_class = '' unless local_assigns[:css_class]
2
- css_class += ' no-description' if group.description.blank?
3 4 5

%li.group-row{ class: css_class }
  .controls.hidden-xs
6 7
    = link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: 'btn btn-grouped btn-sm'
    = link_to 'Destroy', [:admin, group], data: {confirm: "REMOVE #{group.name}? Are you sure?"}, method: :delete, class: 'btn btn-grouped btn-sm btn-remove'
8 9 10 11 12 13 14 15 16 17 18 19 20

  .stats
    %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)

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

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