_group.html.haml 844 Bytes
Newer Older
1 2
- css_class = '' unless local_assigns[:css_class]

3 4 5 6 7 8 9 10 11 12 13
%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')
14

15 16 17
    - if group.description.present?
      .description
        = markdown(group.description, pipeline: :description)
18
  .controls.hidden-xs
19 20
    = 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'