2015-09-11 14:41:01 +05:30
|
|
|
- page_title @group.name, "Groups"
|
2014-09-02 18:07:02 +05:30
|
|
|
%h3.page-title
|
|
|
|
Group: #{@group.name}
|
|
|
|
|
|
|
|
= link_to edit_admin_group_path(@group), class: "btn pull-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
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Group info:
|
|
|
|
%ul.well-list
|
|
|
|
%li
|
2015-04-26 12:48:37 +05:30
|
|
|
= image_tag 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
|
|
|
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%h3.panel-title
|
|
|
|
Projects
|
|
|
|
%span.badge
|
|
|
|
#{@group.projects.count}
|
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
|
|
|
%strong
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
|
2014-09-02 18:07:02 +05:30
|
|
|
%span.label.label-gray
|
|
|
|
= repository_size(project)
|
|
|
|
%span.pull-right.light
|
|
|
|
%span.monospace= project.path_with_namespace + ".git"
|
|
|
|
.panel-footer
|
|
|
|
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if @group.shared_projects.any?
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Projects shared with #{@group.name}
|
|
|
|
%span.badge
|
|
|
|
#{@group.shared_projects.count}
|
|
|
|
%ul.well-list
|
|
|
|
- @group.shared_projects.sort_by(&:name).each do |project|
|
|
|
|
%li
|
|
|
|
%strong
|
|
|
|
= link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
|
|
|
|
%span.label.label-gray
|
|
|
|
= repository_size(project)
|
|
|
|
%span.pull-right.light
|
|
|
|
%span.monospace= project.path_with_namespace + ".git"
|
|
|
|
|
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)
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
Add user(s) to the group:
|
|
|
|
.panel-body.form-holder
|
|
|
|
%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
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
= form_tag members_update_admin_group_path(@group), id: "new_project_member", class: "bulk_import", method: :put do
|
|
|
|
%div
|
|
|
|
= users_select_tag(:user_ids, multiple: true, email_user: true, scope: :all)
|
|
|
|
%div.prepend-top-10
|
|
|
|
= 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"
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
= render 'shared/members/requests', membership_source: @group, requesters: @requesters
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
2016-08-24 12:49:21 +05:30
|
|
|
%strong= @group.name
|
|
|
|
group members
|
|
|
|
%span.badge= @group.members.size
|
|
|
|
.pull-right
|
|
|
|
= link_to icon('pencil-square-o', text: 'Manage Access'), polymorphic_url([@group, :members]), class: "btn btn-xs"
|
|
|
|
%ul.well-list.group-users-list.content-list
|
|
|
|
= render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false }
|
2014-09-02 18:07:02 +05:30
|
|
|
.panel-footer
|
|
|
|
= paginate @members, param_name: 'members_page', theme: 'gitlab'
|