2017-08-17 10:53:50 -04:00
|
|
|
- add_to_breadcrumbs "Groups", admin_groups_path
|
|
|
|
- breadcrumb_title @group.name
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title @group.name, "Groups"
|
2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2016-12-08 14:11:20 -05:00
|
|
|
Group: #{@group.full_name}
|
2012-10-02 12:01:40 -04:00
|
|
|
|
2018-04-09 13:42:45 -04:00
|
|
|
= link_to admin_group_edit_path(@group), class: "btn float-right" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
2013-06-10 08:58:51 -04:00
|
|
|
Edit
|
|
|
|
%hr
|
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-06-10 08:58:51 -04:00
|
|
|
Group info:
|
|
|
|
%ul.well-list
|
2014-06-03 09:40:50 -04:00
|
|
|
%li
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container.s60
|
2017-10-02 07:35:01 -04:00
|
|
|
= group_icon(@group, class: "avatar s60")
|
2013-06-10 08:58:51 -04:00
|
|
|
%li
|
|
|
|
%span.light Name:
|
|
|
|
%strong= @group.name
|
|
|
|
%li
|
|
|
|
%span.light Path:
|
|
|
|
%strong
|
|
|
|
= @group.path
|
2012-12-03 13:14:05 -05:00
|
|
|
|
2013-06-10 08:58:51 -04:00
|
|
|
%li
|
|
|
|
%span.light Description:
|
|
|
|
%strong
|
|
|
|
= @group.description
|
2012-12-25 17:52:20 -05:00
|
|
|
|
2016-03-21 18:11:24 -04:00
|
|
|
%li
|
|
|
|
%span.light Visibility level:
|
|
|
|
%strong
|
|
|
|
= visibility_level_label(@group.visibility_level)
|
|
|
|
|
2013-06-10 08:58:51 -04:00
|
|
|
%li
|
2013-10-21 22:38:15 -04:00
|
|
|
%span.light Created on:
|
2013-06-10 08:58:51 -04:00
|
|
|
%strong
|
2016-01-06 17:27:56 -05:00
|
|
|
= @group.created_at.to_s(:medium)
|
2012-12-25 17:52:20 -05:00
|
|
|
|
2016-11-22 11:58:10 -05:00
|
|
|
%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-01 19:49:48 -04:00
|
|
|
%li
|
|
|
|
%span.light Group Git LFS status:
|
|
|
|
%strong
|
2016-09-05 14:14:49 -04:00
|
|
|
= group_lfs_status(@group)
|
2016-09-01 19:49:48 -04:00
|
|
|
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
|
|
|
|
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2014-06-02 11:58:00 -04:00
|
|
|
%h3.panel-title
|
|
|
|
Projects
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill
|
2014-06-02 11:58:00 -04:00
|
|
|
#{@group.projects.count}
|
2013-06-18 10:32:33 -04:00
|
|
|
%ul.well-list
|
2014-06-02 11:58:00 -04:00
|
|
|
- @projects.each do |project|
|
2013-06-18 10:32:33 -04:00
|
|
|
%li
|
|
|
|
%strong
|
2018-03-05 08:45:35 -05:00
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill
|
2016-11-22 11:58:10 -05:00
|
|
|
= storage_counter(project.statistics.storage_size)
|
2018-04-09 13:42:45 -04:00
|
|
|
%span.float-right.light
|
2017-07-21 20:37:22 -04:00
|
|
|
%span.monospace= project.full_path + '.git'
|
2014-06-02 11:58:00 -04:00
|
|
|
.panel-footer
|
|
|
|
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
|
2012-12-25 17:52:20 -05:00
|
|
|
|
2016-03-11 12:55:17 -05:00
|
|
|
- if @group.shared_projects.any?
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Projects shared with #{@group.name}
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill
|
2016-03-11 12:55:17 -05:00
|
|
|
#{@group.shared_projects.count}
|
|
|
|
%ul.well-list
|
|
|
|
- @group.shared_projects.sort_by(&:name).each do |project|
|
|
|
|
%li
|
|
|
|
%strong
|
2018-03-05 08:45:35 -05:00
|
|
|
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project]
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill
|
2016-11-22 11:58:10 -05:00
|
|
|
= storage_counter(project.statistics.storage_size)
|
2018-04-09 13:42:45 -04:00
|
|
|
%span.float-right.light
|
2017-07-21 20:37:22 -04:00
|
|
|
%span.monospace= project.full_path + '.git'
|
2016-03-11 12:55:17 -05:00
|
|
|
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2015-07-28 10:36:48 -04:00
|
|
|
- if can?(current_user, :admin_group_member, @group)
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Add user(s) to the group:
|
|
|
|
.panel-body.form-holder
|
|
|
|
%p.light
|
|
|
|
Read more about project permissions
|
2016-07-14 06:04:03 -04:00
|
|
|
%strong= link_to "here", help_page_path("user/permissions"), class: "vlink"
|
2012-10-02 12:01:40 -04:00
|
|
|
|
2016-12-08 13:59:41 -05:00
|
|
|
= form_tag admin_group_members_update_path(@group), id: "new_project_member", class: "bulk_import", method: :put do
|
2015-07-28 10:36:48 -04:00
|
|
|
%div
|
|
|
|
= users_select_tag(:user_ids, multiple: true, email_user: true, scope: :all)
|
2016-12-23 04:37:12 -05:00
|
|
|
.prepend-top-10
|
2015-07-28 10:36:48 -04:00
|
|
|
= 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-07-05 15:17:02 -04:00
|
|
|
= render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true
|
2016-06-20 09:50:46 -04:00
|
|
|
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2016-06-20 09:50:46 -04:00
|
|
|
%strong= @group.name
|
|
|
|
group members
|
2018-04-09 12:33:41 -04:00
|
|
|
%span.badge.badge-pill= @group.members.size
|
2018-04-09 13:42:45 -04:00
|
|
|
.float-right
|
2017-04-04 18:36:19 -04:00
|
|
|
= link_to icon('pencil-square-o', text: 'Manage access'), polymorphic_url([@group, :members]), class: "btn btn-xs"
|
2017-07-05 15:17:02 -04:00
|
|
|
%ul.well-list.group-users-list.content-list.members-list
|
2016-06-27 10:20:57 -04:00
|
|
|
= render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false }
|
2014-06-02 11:58:00 -04:00
|
|
|
.panel-footer
|
2016-06-27 10:20:57 -04:00
|
|
|
= paginate @members, param_name: 'members_page', theme: 'gitlab'
|