2015-04-30 13:06:18 -04:00
|
|
|
- page_title @group.name, "Groups"
|
2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2012-10-02 12:01:40 -04:00
|
|
|
Group: #{@group.name}
|
|
|
|
|
2014-06-03 09:40:50 -04:00
|
|
|
= link_to edit_admin_group_path(@group), class: "btn pull-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
|
2015-03-12 16:56:53 -04:00
|
|
|
= image_tag 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
|
|
|
|
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
|
|
|
|
= @group.created_at.stamp("March 1, 1999")
|
2012-12-25 17:52:20 -05:00
|
|
|
|
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
|
|
|
|
%span.badge
|
|
|
|
#{@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
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
|
2013-11-29 07:16:17 -05:00
|
|
|
%span.label.label-gray
|
|
|
|
= repository_size(project)
|
2013-06-18 10:32:33 -04:00
|
|
|
%span.pull-right.light
|
|
|
|
%span.monospace= project.path_with_namespace + ".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
|
|
|
|
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
|
|
|
|
%strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
|
2012-10-02 12:01:40 -04:00
|
|
|
|
2015-07-28 10:36:48 -04:00
|
|
|
= 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"
|
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
|
|
|
|
Members
|
|
|
|
%span.badge
|
2014-09-14 12:32:51 -04:00
|
|
|
#{@group.group_members.count}
|
2013-06-20 06:29:17 -04:00
|
|
|
%ul.well-list.group-users-list
|
2014-06-02 11:58:00 -04:00
|
|
|
- @members.each do |member|
|
2013-06-18 10:32:33 -04:00
|
|
|
- user = member.user
|
2015-04-10 09:14:14 -04:00
|
|
|
%li{class: dom_class(member), id: (dom_id(user) if user)}
|
2014-03-26 03:25:02 -04:00
|
|
|
.list-item-name
|
2015-04-10 09:14:14 -04:00
|
|
|
- if user
|
|
|
|
%strong
|
|
|
|
= link_to user.name, admin_user_path(user)
|
|
|
|
- else
|
|
|
|
%strong
|
|
|
|
= member.invite_email
|
|
|
|
(invited)
|
2013-06-10 10:09:30 -04:00
|
|
|
%span.pull-right.light
|
2013-06-18 10:32:33 -04:00
|
|
|
= member.human_access
|
2015-07-28 10:36:48 -04:00
|
|
|
- if can?(current_user, :destroy_group_member, member)
|
|
|
|
= link_to group_group_member_path(@group, member), data: { confirm: remove_user_from_group_message(@group, member) }, method: :delete, remote: true, class: "btn-xs btn btn-remove", title: 'Remove user from group' do
|
|
|
|
%i.fa.fa-minus.fa-inverse
|
2014-06-02 11:58:00 -04:00
|
|
|
.panel-footer
|
|
|
|
= paginate @members, param_name: 'members_page', theme: 'gitlab'
|