2018-05-31 12:00:36 +00:00
|
|
|
- group = local_assigns.fetch(:group)
|
2016-07-14 22:13:38 +00:00
|
|
|
- css_class = 'no-description' if group.description.blank?
|
2016-04-04 17:23:50 +00:00
|
|
|
|
2020-04-06 21:09:19 +00:00
|
|
|
%li.group-row.py-3{ class: css_class, data: { qa_selector: 'group_row_content' } }
|
2016-07-14 22:13:38 +00:00
|
|
|
.controls
|
2018-06-16 04:45:36 +00:00
|
|
|
= link_to _('Edit'), admin_group_edit_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}?") % { group_name: group.name } }, method: :delete, class: 'btn btn-remove'
|
2016-07-14 22:13:38 +00:00
|
|
|
.stats
|
2018-04-09 16:33:41 +00:00
|
|
|
%span.badge.badge-pill
|
2016-11-22 16:58:10 +00:00
|
|
|
= storage_counter(group.storage_size)
|
|
|
|
|
2018-05-31 12:00:36 +00:00
|
|
|
= render_if_exists 'admin/namespace_plan_badge', namespace: group
|
2020-01-24 15:09:00 +00:00
|
|
|
= render_if_exists 'admin/groups/marked_for_deletion_badge', group: group
|
2018-05-31 12:00:36 +00:00
|
|
|
|
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)
|
|
|
|
|
2019-02-25 13:00:05 +00:00
|
|
|
.avatar-container.rect-avatar.s40
|
2018-04-09 21:50:40 +00:00
|
|
|
= group_icon(group, class: "avatar s40 d-none d-sm-block")
|
2016-07-14 22:13:38 +00:00
|
|
|
.title
|
2020-04-06 21:09:19 +00:00
|
|
|
= link_to [:admin, group], class: 'group-name', data: { qa_selector: 'group_name_link' } 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)
|