2016-07-14 18:13:38 -04:00
|
|
|
- css_class = 'no-description' if group.description.blank?
|
2016-04-04 13:23:50 -04:00
|
|
|
|
2016-07-14 18:13:38 -04:00
|
|
|
%li.group-row{ class: css_class }
|
|
|
|
.controls
|
2016-05-26 18:55:49 -04:00
|
|
|
= 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'
|
2016-07-14 18:13:38 -04:00
|
|
|
.stats
|
|
|
|
%span
|
|
|
|
= icon('bookmark')
|
|
|
|
= number_with_delimiter(group.projects.count)
|
|
|
|
|
|
|
|
%span
|
|
|
|
= icon('users')
|
|
|
|
= number_with_delimiter(group.users.count)
|
|
|
|
|
2016-07-14 19:02:50 -04:00
|
|
|
%span.visibility-icon.has-tooltip{data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group)}
|
|
|
|
= visibility_level_icon(group.visibility_level, fw: false)
|
|
|
|
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container.s40
|
2016-10-31 15:14:05 -04:00
|
|
|
= image_tag group_icon(group), class: "avatar s40 hidden-xs"
|
2016-07-14 18:13:38 -04:00
|
|
|
.title
|
|
|
|
= link_to [:admin, group], class: 'group-name' do
|
|
|
|
= group.name
|
|
|
|
|
|
|
|
- if group.description.present?
|
|
|
|
.description
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown_field(group, :description)
|