gitlab-org--gitlab-foss/app/views/admin/groups/_group.html.haml
Tim Zallmann 892b02e890 Created group_icon and group_icon_url
Tests for these new helper methods
2017-10-04 14:27:09 +02:00

30 lines
1 KiB
Text

- css_class = 'no-description' if group.description.blank?
%li.group-row{ class: css_class }
.controls
= 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}?" }, method: :delete, class: 'btn btn-remove'
.stats
%span.badge
= storage_counter(group.storage_size)
%span
= icon('bookmark')
= number_with_delimiter(group.projects.count)
%span
= icon('users')
= number_with_delimiter(group.users.count)
%span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
= visibility_level_icon(group.visibility_level, fw: false)
.avatar-container.s40
= group_icon(group, class: "avatar s40 hidden-xs")
.title
= link_to [:admin, group], class: 'group-name' do
= group.full_name
- if group.description.present?
.description
= markdown_field(group, :description)