2018-06-16 04:45:36 +00:00
|
|
|
- add_to_breadcrumbs _("Groups"), admin_groups_path
|
2017-08-17 14:53:50 +00:00
|
|
|
- breadcrumb_title @group.name
|
2018-06-16 04:45:36 +00:00
|
|
|
- page_title @group.name, _("Groups")
|
2013-07-13 05:45:48 +00:00
|
|
|
%h3.page-title
|
2018-06-16 04:45:36 +00:00
|
|
|
= _('Group: %{group_name}') % { group_name: @group.full_name }
|
2012-10-02 16:01:40 +00:00
|
|
|
|
2020-04-06 21:09:19 +00:00
|
|
|
= link_to admin_group_edit_path(@group), class: "btn float-right", data: { qa_selector: 'edit_group_link' } do
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-pencil-square-o
|
2018-06-16 04:45:36 +00:00
|
|
|
= _('Edit')
|
2013-06-10 12:58:51 +00:00
|
|
|
%hr
|
|
|
|
.row
|
2013-12-30 21:55:15 +00:00
|
|
|
.col-md-6
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-06-16 04:45:36 +00:00
|
|
|
= _('Group info:')
|
2018-05-29 15:08:35 +00:00
|
|
|
%ul.content-list
|
2014-06-03 13:40:50 +00:00
|
|
|
%li
|
2019-02-25 13:00:05 +00:00
|
|
|
.avatar-container.rect-avatar.s60
|
2017-10-02 11:35:01 +00:00
|
|
|
= group_icon(@group, class: "avatar s60")
|
2013-06-10 12:58:51 +00:00
|
|
|
%li
|
2018-06-16 04:45:36 +00:00
|
|
|
%span.light= _('Name:')
|
2019-12-14 00:08:27 +00:00
|
|
|
%strong
|
|
|
|
= link_to @group.name, group_path(@group)
|
2013-06-10 12:58:51 +00:00
|
|
|
%li
|
2018-06-16 04:45:36 +00:00
|
|
|
%span.light= _('Path:')
|
2013-06-10 12:58:51 +00:00
|
|
|
%strong
|
|
|
|
= @group.path
|
2012-12-03 18:14:05 +00:00
|
|
|
|
2013-06-10 12:58:51 +00:00
|
|
|
%li
|
2018-06-16 04:45:36 +00:00
|
|
|
%span.light= _('Description:')
|
2013-06-10 12:58:51 +00:00
|
|
|
%strong
|
|
|
|
= @group.description
|
2012-12-25 22:52:20 +00:00
|
|
|
|
2016-03-21 22:11:24 +00:00
|
|
|
%li
|
2018-06-16 04:45:36 +00:00
|
|
|
%span.light= _('Visibility level:')
|
2016-03-21 22:11:24 +00:00
|
|
|
%strong
|
|
|
|
= visibility_level_label(@group.visibility_level)
|
|
|
|
|
2013-06-10 12:58:51 +00:00
|
|
|
%li
|
2018-06-16 04:45:36 +00:00
|
|
|
%span.light= _('Created on:')
|
2013-06-10 12:58:51 +00:00
|
|
|
%strong
|
2016-01-06 22:27:56 +00:00
|
|
|
= @group.created_at.to_s(:medium)
|
2012-12-25 22:52:20 +00:00
|
|
|
|
2019-07-22 12:52:30 +00:00
|
|
|
%li
|
|
|
|
%span.light= _('ID:')
|
|
|
|
%strong
|
|
|
|
= @group.id
|
|
|
|
|
2018-05-31 12:00:36 +00:00
|
|
|
= render_if_exists 'admin/namespace_plan_info', namespace: @group
|
|
|
|
|
2016-11-22 16:58:10 +00:00
|
|
|
%li
|
2019-07-09 13:43:53 +00:00
|
|
|
= render 'shared/storage_counter_statistics', storage_size: @group.storage_size, storage_details: @group
|
2016-11-22 16:58:10 +00:00
|
|
|
|
2016-09-01 23:49:48 +00:00
|
|
|
%li
|
2018-06-16 04:45:36 +00:00
|
|
|
%span.light= _('Group Git LFS status:')
|
2016-09-01 23:49:48 +00:00
|
|
|
%strong
|
2016-09-05 18:14:49 +00:00
|
|
|
= group_lfs_status(@group)
|
2020-04-01 18:07:56 +00:00
|
|
|
= link_to icon('question-circle'), help_page_path('topics/git/lfs/index')
|
2016-09-01 23:49:48 +00:00
|
|
|
|
2018-05-31 12:00:36 +00:00
|
|
|
= render_if_exists 'namespaces/shared_runner_status', namespace: @group
|
|
|
|
|
|
|
|
= render_if_exists 'ldap_group_links/ldap_group_links_show', group: @group
|
|
|
|
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-06-02 00:40:09 +00:00
|
|
|
= _('Projects')
|
|
|
|
%span.badge.badge-pill
|
|
|
|
#{@group.projects.count}
|
2018-05-29 15:08:35 +00:00
|
|
|
%ul.content-list
|
2014-06-02 15:58:00 +00:00
|
|
|
- @projects.each do |project|
|
2013-06-18 14:32:33 +00:00
|
|
|
%li
|
|
|
|
%strong
|
2018-03-05 13:45:35 +00:00
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]
|
2018-04-09 16:33:41 +00:00
|
|
|
%span.badge.badge-pill
|
2016-11-22 16:58:10 +00:00
|
|
|
= storage_counter(project.statistics.storage_size)
|
2018-04-09 17:42:45 +00:00
|
|
|
%span.float-right.light
|
2017-07-22 00:37:22 +00:00
|
|
|
%span.monospace= project.full_path + '.git'
|
2018-04-10 17:11:34 +00:00
|
|
|
.card-footer
|
2014-06-02 15:58:00 +00:00
|
|
|
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
|
2012-12-25 22:52:20 +00:00
|
|
|
|
2020-03-19 18:09:17 +00:00
|
|
|
- shared_projects = @group.shared_projects.sort_by(&:name)
|
|
|
|
- unless shared_projects.empty?
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-06-16 04:45:36 +00:00
|
|
|
= _('Projects shared with %{group_name}') % { group_name: @group.name }
|
2018-04-09 16:33:41 +00:00
|
|
|
%span.badge.badge-pill
|
2020-03-19 18:09:17 +00:00
|
|
|
#{shared_projects.size}
|
2018-05-29 15:08:35 +00:00
|
|
|
%ul.content-list
|
2020-03-19 18:09:17 +00:00
|
|
|
- shared_projects.each do |project|
|
2016-03-11 17:55:17 +00:00
|
|
|
%li
|
|
|
|
%strong
|
2018-03-05 13:45:35 +00:00
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]
|
2018-04-09 16:33:41 +00:00
|
|
|
%span.badge.badge-pill
|
2016-11-22 16:58:10 +00:00
|
|
|
= storage_counter(project.statistics.storage_size)
|
2018-04-09 17:42:45 +00:00
|
|
|
%span.float-right.light
|
2017-07-22 00:37:22 +00:00
|
|
|
%span.monospace= project.full_path + '.git'
|
2016-03-11 17:55:17 +00:00
|
|
|
|
2013-12-30 21:55:15 +00:00
|
|
|
.col-md-6
|
2015-07-28 14:36:48 +00:00
|
|
|
- if can?(current_user, :admin_group_member, @group)
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-06-16 04:45:36 +00:00
|
|
|
= _('Add user(s) to the group:')
|
2018-04-10 17:11:34 +00:00
|
|
|
.card-body.form-holder
|
2015-07-28 14:36:48 +00:00
|
|
|
%p.light
|
2018-12-05 12:46:05 +00:00
|
|
|
- link_to_help = link_to(_("here"), help_page_path("user/permissions"))
|
2018-06-16 04:45:36 +00:00
|
|
|
= _('Read more about project permissions <strong>%{link_to_help}</strong>').html_safe % { link_to_help: link_to_help }
|
2012-10-02 16:01:40 +00:00
|
|
|
|
2019-01-16 12:09:29 +00:00
|
|
|
= form_tag admin_group_members_update_path(@group), id: "new_project_member", class: "bulk_import", method: :put do
|
2015-07-28 14:36:48 +00:00
|
|
|
%div
|
2018-05-31 12:00:36 +00:00
|
|
|
= users_select_tag(:user_ids, multiple: true, email_user: true, skip_ldap: @group.ldap_synced?, scope: :all)
|
2016-12-23 09:37:12 +00:00
|
|
|
.prepend-top-10
|
2015-07-28 14:36:48 +00:00
|
|
|
= select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2"
|
|
|
|
%hr
|
2018-09-18 09:58:22 +00:00
|
|
|
= button_tag _('Add users to group'), class: "btn btn-success"
|
2017-07-05 19:17:02 +00:00
|
|
|
= render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true
|
2016-06-20 13:50:46 +00:00
|
|
|
|
2018-04-10 17:11:34 +00:00
|
|
|
.card
|
|
|
|
.card-header
|
2018-06-16 04:45:36 +00:00
|
|
|
= _("<strong>%{group_name}</strong> group members").html_safe % { group_name: @group.name }
|
2018-04-09 16:33:41 +00:00
|
|
|
%span.badge.badge-pill= @group.members.size
|
2018-04-09 17:42:45 +00:00
|
|
|
.float-right
|
2018-10-16 10:14:26 +00:00
|
|
|
= link_to icon('pencil-square-o', text: _('Manage access')), group_group_members_path(@group), class: "btn btn-sm"
|
2018-05-29 15:08:35 +00:00
|
|
|
%ul.content-list.group-users-list.content-list.members-list
|
2016-06-27 14:20:57 +00:00
|
|
|
= render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false }
|
2018-04-10 17:11:34 +00:00
|
|
|
.card-footer
|
2016-06-27 14:20:57 +00:00
|
|
|
= paginate @members, param_name: 'members_page', theme: 'gitlab'
|