2018-03-17 18:26:18 +05:30
|
|
|
- add_to_breadcrumbs "Groups", admin_groups_path
|
|
|
|
- breadcrumb_title @group.name
|
2015-09-11 14:41:01 +05:30
|
|
|
- page_title @group.name, "Groups"
|
2014-09-02 18:07:02 +05:30
|
|
|
%h3.page-title
|
2017-08-17 22:00:37 +05:30
|
|
|
Group: #{@group.full_name}
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to admin_group_edit_path(@group), class: "btn float-right" do
|
2015-04-26 12:48:37 +05:30
|
|
|
%i.fa.fa-pencil-square-o
|
2014-09-02 18:07:02 +05:30
|
|
|
Edit
|
|
|
|
%hr
|
|
|
|
.row
|
|
|
|
.col-md-6
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2014-09-02 18:07:02 +05:30
|
|
|
Group info:
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2014-09-02 18:07:02 +05:30
|
|
|
%li
|
2017-08-17 22:00:37 +05:30
|
|
|
.avatar-container.s60
|
2018-03-17 18:26:18 +05:30
|
|
|
= group_icon(@group, class: "avatar s60")
|
2014-09-02 18:07:02 +05:30
|
|
|
%li
|
|
|
|
%span.light Name:
|
|
|
|
%strong= @group.name
|
|
|
|
%li
|
|
|
|
%span.light Path:
|
|
|
|
%strong
|
|
|
|
= @group.path
|
|
|
|
|
|
|
|
%li
|
|
|
|
%span.light Description:
|
|
|
|
%strong
|
|
|
|
= @group.description
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
|
|
|
%span.light Visibility level:
|
|
|
|
%strong
|
|
|
|
= visibility_level_label(@group.visibility_level)
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
%li
|
|
|
|
%span.light Created on:
|
|
|
|
%strong
|
2016-01-14 18:37:52 +05:30
|
|
|
= @group.created_at.to_s(:medium)
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'admin/namespace_plan_info', namespace: @group
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
%li
|
|
|
|
%span.light Storage:
|
|
|
|
%strong= storage_counter(@group.storage_size)
|
|
|
|
(
|
|
|
|
= storage_counter(@group.repository_size)
|
|
|
|
repositories,
|
|
|
|
= storage_counter(@group.build_artifacts_size)
|
|
|
|
build artifacts,
|
|
|
|
= storage_counter(@group.lfs_objects_size)
|
|
|
|
LFS
|
|
|
|
)
|
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
%li
|
|
|
|
%span.light Group Git LFS status:
|
|
|
|
%strong
|
|
|
|
= group_lfs_status(@group)
|
|
|
|
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
= render_if_exists 'namespaces/shared_runner_status', namespace: @group
|
|
|
|
|
|
|
|
= render_if_exists 'ldap_group_links/ldap_group_links_show', group: @group
|
|
|
|
|
|
|
|
.card
|
|
|
|
.card-header
|
|
|
|
%h3.card-title
|
2014-09-02 18:07:02 +05:30
|
|
|
Projects
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill
|
2014-09-02 18:07:02 +05:30
|
|
|
#{@group.projects.count}
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2014-09-02 18:07:02 +05:30
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
|
|
|
%strong
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill
|
2017-08-17 22:00:37 +05:30
|
|
|
= 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'
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-footer
|
2014-09-02 18:07:02 +05:30
|
|
|
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @group.shared_projects.any?
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2016-06-02 11:05:42 +05:30
|
|
|
Projects shared with #{@group.name}
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill
|
2016-06-02 11:05:42 +05:30
|
|
|
#{@group.shared_projects.count}
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.content-list
|
2016-06-02 11:05:42 +05:30
|
|
|
- @group.shared_projects.sort_by(&:name).each do |project|
|
|
|
|
%li
|
|
|
|
%strong
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill
|
2017-08-17 22:00:37 +05:30
|
|
|
= 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'
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.col-md-6
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can?(current_user, :admin_group_member, @group)
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2015-09-11 14:41:01 +05:30
|
|
|
Add user(s) to the group:
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-body.form-holder
|
2015-09-11 14:41:01 +05:30
|
|
|
%p.light
|
|
|
|
Read more about project permissions
|
2016-08-24 12:49:21 +05:30
|
|
|
%strong= link_to "here", help_page_path("user/permissions"), class: "vlink"
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
= form_tag admin_group_members_update_path(@group), id: "new_project_member", class: "bulk_import", method: :put do
|
2015-09-11 14:41:01 +05:30
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= users_select_tag(:user_ids, multiple: true, email_user: true, skip_ldap: @group.ldap_synced?, scope: :all)
|
2017-08-17 22:00:37 +05:30
|
|
|
.prepend-top-10
|
2015-09-11 14:41:01 +05:30
|
|
|
= select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2"
|
|
|
|
%hr
|
|
|
|
= button_tag 'Add users to group', class: "btn btn-create"
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.card
|
|
|
|
.card-header
|
2016-08-24 12:49:21 +05:30
|
|
|
%strong= @group.name
|
|
|
|
group members
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-pill= @group.members.size
|
|
|
|
.float-right
|
|
|
|
= link_to icon('pencil-square-o', text: 'Manage access'), polymorphic_url([@group, :members]), class: "btn btn-sm"
|
|
|
|
%ul.content-list.group-users-list.content-list.members-list
|
2016-08-24 12:49:21 +05:30
|
|
|
= render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false }
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-footer
|
2014-09-02 18:07:02 +05:30
|
|
|
= paginate @members, param_name: 'members_page', theme: 'gitlab'
|