2016-07-14 22:13:38 +00:00
|
|
|
- css_class = 'no-description' if group.description.blank?
|
2016-04-04 17:23:50 +00:00
|
|
|
|
2016-07-14 22:13:38 +00:00
|
|
|
%li.group-row{ class: css_class }
|
|
|
|
.controls
|
2016-12-08 18:59:41 +00:00
|
|
|
= link_to 'Edit', admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn'
|
2016-05-26 22:55:49 +00:00
|
|
|
= 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 22:13:38 +00:00
|
|
|
.stats
|
2016-11-22 16:58:10 +00:00
|
|
|
%span.badge
|
|
|
|
= storage_counter(group.storage_size)
|
|
|
|
|
2016-07-14 22:13:38 +00:00
|
|
|
%span
|
|
|
|
= icon('bookmark')
|
|
|
|
= number_with_delimiter(group.projects.count)
|
|
|
|
|
|
|
|
%span
|
|
|
|
= icon('users')
|
|
|
|
= number_with_delimiter(group.users.count)
|
|
|
|
|
2016-12-26 10:47:16 +00:00
|
|
|
%span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
|
2016-07-14 23:02:50 +00:00
|
|
|
= visibility_level_icon(group.visibility_level, fw: false)
|
|
|
|
|
2016-11-03 14:26:22 +00:00
|
|
|
.avatar-container.s40
|
2017-10-02 11:35:01 +00:00
|
|
|
= group_icon(group, class: "avatar s40 hidden-xs")
|
2016-07-14 22:13:38 +00:00
|
|
|
.title
|
|
|
|
= link_to [:admin, group], class: 'group-name' do
|
2016-12-08 19:11:20 +00:00
|
|
|
= group.full_name
|
2016-07-14 22:13:38 +00:00
|
|
|
|
|
|
|
- if group.description.present?
|
|
|
|
.description
|
2016-10-06 22:01:42 +00:00
|
|
|
= markdown_field(group, :description)
|