- css_class = '' unless local_assigns[:css_class]
%li.group-row.group-admin{ class: css_class } .group-avatar = image_tag group_icon(group), class: 'avatar hidden-xs' .group-details .title = link_to [:admin, group], class: 'group-name' do = group.name .group-stats %span>= pluralize(number_with_delimiter(group.projects.count), 'project') , %span= pluralize(number_with_delimiter(group.users.count), 'member')
- if group.description.present? .description = markdown(group.description, pipeline: :description)
.controls.hidden-xs
= link_to 'Edit', edit_admin_group_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}?" }, method: :delete, class: 'btn btn-remove'