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

125 lines
5 KiB
Text
Raw Normal View History

2021-04-17 20:07:23 +05:30
- add_page_specific_style 'page_bundles/members'
2018-11-18 11:00:15 +05:30
- add_to_breadcrumbs _("Groups"), admin_groups_path
2018-03-17 18:26:18 +05:30
- breadcrumb_title @group.name
2018-11-18 11:00:15 +05:30
- page_title @group.name, _("Groups")
2021-01-29 00:20:46 +05:30
- current_user_is_group_owner = @group && @group.has_owner?(current_user)
2020-07-28 23:09:34 +05:30
2022-07-23 23:45:48 +05:30
%h1.page-title.gl-font-size-h-display
2018-11-18 11:00:15 +05:30
= _('Group: %{group_name}') % { group_name: @group.full_name }
2014-09-02 18:07:02 +05:30
2020-10-24 23:57:45 +05:30
= link_to admin_group_edit_path(@group), class: "btn btn-default gl-button float-right", data: { qa_selector: 'edit_group_link' } do
2022-07-23 23:45:48 +05:30
= sprite_icon('pencil', css_class: 'gl-icon gl-mr-2')
2018-11-18 11:00:15 +05:30
= _('Edit')
2014-09-02 18:07:02 +05:30
%hr
.row
.col-md-6
2022-11-25 23:54:43 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-p-0' }) do |c|
- c.header do
2018-11-18 11:00:15 +05:30
= _('Group info:')
2022-11-25 23:54:43 +05:30
- c.body do
%ul.content-list.content-list-items-padding
%li
.avatar-container.rect-avatar.s60
= group_icon(@group, class: "avatar s60")
%li
%span.light= _('Name:')
%strong
= link_to @group.name, group_path(@group)
%li
%span.light= _('Path:')
%strong
= @group.path
%li
%span.light= _('Description:')
%strong
= @group.description
%li
%span.light= _('Visibility level:')
%strong
= visibility_level_label(@group.visibility_level)
%li
%span.light= _('Created on:')
%strong
= @group.created_at.to_s(:medium)
%li
%span.light= _('ID:')
%strong
= @group.id
= render_if_exists 'admin/namespace_plan_info', namespace: @group
%li
= render 'shared/storage_counter_statistics', storage_size: @group.storage_size, storage_details: @group
%li
%span.light= _('Group Git LFS status:')
%strong
= group_lfs_status(@group)
= link_to sprite_icon('question-o'), help_page_path('topics/git/lfs/index')
= render_if_exists 'namespaces/shared_runner_status', namespace: @group
= render_if_exists 'namespaces/additional_minutes_status', namespace: @group
2018-11-08 19:23:39 +05:30
2020-06-23 00:09:42 +05:30
= render 'shared/custom_attributes', custom_attributes: @group.custom_attributes
2018-11-08 19:23:39 +05:30
= render_if_exists 'ldap_group_links/ldap_group_links_show', group: @group
2022-11-25 23:54:43 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-p-0' }) do |c|
- c.header do
2018-12-13 13:39:08 +05:30
= _('Projects')
2022-01-26 12:08:38 +05:30
= gl_badge_tag @group.projects.count
2022-11-25 23:54:43 +05:30
- c.body do
%ul.content-list.content-list-items-padding
- @projects.each do |project|
2016-06-02 11:05:42 +05:30
%li
%strong
2020-10-24 23:57:45 +05:30
= link_to project.full_name, [:admin, project]
2022-01-26 12:08:38 +05:30
= gl_badge_tag storage_counter(project.statistics.storage_size)
2018-11-08 19:23:39 +05:30
%span.float-right.light
2017-09-10 17:25:29 +05:30
%span.monospace= project.full_path + '.git'
2022-11-25 23:54:43 +05:30
- unless @projects.size < Kaminari.config.default_per_page
- c.footer do
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
- shared_projects = @group.shared_projects.sort_by(&:name)
- unless shared_projects.empty?
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-p-0' }) do |c|
- c.header do
= _('Projects shared with %{group_name}') % { group_name: @group.name }
= gl_badge_tag shared_projects.size
- c.body do
%ul.content-list.content-list-items-padding
- shared_projects.each do |project|
%li
%strong
= link_to project.full_name, [:admin, project]
= gl_badge_tag storage_counter(project.statistics.storage_size)
%span.float-right.light
%span.monospace= project.full_path + '.git'
2016-06-02 11:05:42 +05:30
2014-09-02 18:07:02 +05:30
.col-md-6
2021-04-29 21:17:54 +05:30
= render 'shared/admin/admin_note'
2015-09-11 14:41:01 +05:30
- if can?(current_user, :admin_group_member, @group)
2021-01-29 00:20:46 +05:30
= render 'shared/members/requests', membership_source: @group, group: @group, requesters: @requesters, force_mobile_view: true
2016-08-24 12:49:21 +05:30
2022-11-25 23:54:43 +05:30
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-p-0' }) do |c|
- c.header do
2020-10-24 23:57:45 +05:30
= html_escape(_("%{group_name} group members")) % { group_name: "<strong>#{html_escape(@group.name)}</strong>".html_safe }
2022-01-26 12:08:38 +05:30
= gl_badge_tag @group.users_count
2021-09-30 23:02:18 +05:30
= render 'shared/members/manage_access_button', path: group_group_members_path(@group)
2022-11-25 23:54:43 +05:30
- c.body do
%ul.content-list.group-users-list.members-list
= render partial: 'shared/members/member',
collection: @members, as: :member,
locals: { membership_source: @group,
group: @group,
current_user_is_group_owner: current_user_is_group_owner }
2021-03-08 18:12:59 +05:30
- unless @members.size < Kaminari.config.default_per_page
2022-11-25 23:54:43 +05:30
- c.footer do
2021-03-08 18:12:59 +05:30
= paginate @members, param_name: 'members_page', theme: 'gitlab'