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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.8 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
- group = local_assigns.fetch(:group)
2016-06-02 11:05:42 +05:30
2022-11-25 23:54:43 +05:30
%li.group-row.gl-py-3.gl-align-items-center{ class: 'gl-display-flex!', data: { qa_selector: 'group_row_content' } }
2020-06-23 00:09:42 +05:30
.avatar-container.rect-avatar.s40.gl-flex-shrink-0
= group_icon(group, class: "avatar s40")
.gl-min-w-0.gl-flex-grow-1
.title
= link_to [:admin, group], class: 'group-name', data: { qa_selector: 'group_name_link' } do
= group.full_name
- if group.description.present?
.description
= markdown_field(group, :description)
2021-03-11 19:13:27 +05:30
.stats.gl-text-gray-500.gl-flex-shrink-0.gl-display-none.gl-sm-display-flex
2022-03-02 08:16:31 +05:30
= gl_badge_tag storage_counter(group.storage_size), size: :sm
2017-08-17 22:00:37 +05:30
2020-06-23 00:09:42 +05:30
= render_if_exists 'admin/namespace_plan_badge', namespace: group, css_class: 'gl-ml-5 gl-mr-0'
= render_if_exists 'admin/groups/marked_for_deletion_badge', group: group, css_class: 'gl-ml-5'
2018-11-08 19:23:39 +05:30
2020-06-23 00:09:42 +05:30
%span.gl-ml-5
2020-10-24 23:57:45 +05:30
= sprite_icon('bookmark', css_class: 'gl-vertical-align-text-bottom')
2016-06-02 11:05:42 +05:30
= number_with_delimiter(group.projects.count)
2020-06-23 00:09:42 +05:30
%span.gl-ml-5
2020-10-24 23:57:45 +05:30
= sprite_icon('users', css_class: 'gl-vertical-align-text-bottom')
2020-11-24 15:15:51 +05:30
= number_with_delimiter(group.users_count)
2016-06-02 11:05:42 +05:30
2020-06-23 00:09:42 +05:30
%span.gl-ml-5.visibility-icon.has-tooltip{ data: { container: 'body', placement: 'left' }, title: visibility_icon_description(group) }
2020-10-24 23:57:45 +05:30
= visibility_level_icon(group.visibility_level)
2016-06-02 11:05:42 +05:30
2020-06-23 00:09:42 +05:30
.controls.gl-flex-shrink-0.gl-ml-5
2023-03-04 22:38:38 +05:30
= render Pajamas::ButtonComponent.new(href: admin_group_edit_path(group), button_options: { id: "edit_#{dom_id(group)}" }) do
= _('Edit')
= render Pajamas::ButtonComponent.new(href: [:admin, group], variant: :danger, button_options: { data: { confirm: _("Are you sure you want to remove %{group_name}?") % { group_name: group.name }, confirm_btn_variant: 'danger', method: :delete } }) do
= _('Delete')