debian-mirror-gitlab/app/views/admin/groups/_group.html.haml

34 lines
1.2 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
- group = local_assigns.fetch(:group)
2016-08-24 12:49:21 +05:30
- css_class = 'no-description' if group.description.blank?
2016-06-02 11:05:42 +05:30
2020-01-01 13:55:28 +05:30
%li.group-row.py-3{ class: css_class }
2016-08-24 12:49:21 +05:30
.controls
2018-11-18 11:00:15 +05:30
= 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-06-02 11:05:42 +05:30
.stats
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2017-08-17 22:00:37 +05:30
= storage_counter(group.storage_size)
2018-11-08 19:23:39 +05:30
= render_if_exists 'admin/namespace_plan_badge', namespace: group
2016-06-02 11:05:42 +05:30
%span
= icon('bookmark')
= number_with_delimiter(group.projects.count)
%span
= icon('users')
= number_with_delimiter(group.users.count)
2017-08-17 22:00:37 +05:30
%span.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
2016-06-02 11:05:42 +05:30
= visibility_level_icon(group.visibility_level, fw: false)
2019-07-07 11:18:12 +05:30
.avatar-container.rect-avatar.s40
2018-11-08 19:23:39 +05:30
= group_icon(group, class: "avatar s40 d-none d-sm-block")
2016-06-02 11:05:42 +05:30
.title
= link_to [:admin, group], class: 'group-name' do
2017-08-17 22:00:37 +05:30
= group.full_name
2016-06-02 11:05:42 +05:30
- if group.description.present?
.description
2016-11-03 12:29:30 +05:30
= markdown_field(group, :description)