debian-mirror-gitlab/app/views/admin/groups/show.html.haml

87 lines
2.8 KiB
Text
Raw Normal View History

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
%i.icon-edit
Edit
%hr
.row
.col-md-6
.panel.panel-default
.panel-heading
Group info:
%ul.well-list
%li
= image_tag group_icon(@group.path), class: "avatar s60"
%li
%span.light Name:
%strong= @group.name
%li
%span.light Path:
%strong
= @group.path
%li
%span.light Description:
%strong
= @group.description
%li
%span.light Created on:
%strong
= @group.created_at.stamp("March 1, 1999")
.panel.panel-default
.panel-heading
%h3.panel-title
Projects
%span.badge
#{@group.projects.count}
%ul.well-list
- @projects.each do |project|
%li
%strong
= link_to project.name_with_namespace, [:admin, project]
%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'
.col-md-6
.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"
= form_tag project_teams_update_admin_group_path(@group), id: "new_team_member", class: "bulk_import", method: :put do
%div
= users_select_tag(:user_ids, multiple: true)
%div.prepend-top-10
= select_tag :group_access, options_for_select(UsersGroup.group_access_roles), class: "project-access-select select2"
%hr
= submit_tag 'Add users into group', class: "btn btn-create"
.panel.panel-default
.panel-heading
%h3.panel-title
Members
%span.badge
#{@group.users_groups.count}
%ul.well-list.group-users-list
- @members.each do |member|
- user = member.user
%li{class: dom_class(user)}
.list-item-name
%strong
= link_to user.name, admin_user_path(user)
%span.pull-right.light
= member.human_access
= link_to group_users_group_path(@group, member), data: { confirm: remove_user_from_group_message(@group, user) }, method: :delete, remote: true, class: "btn-tiny btn btn-remove", title: 'Remove user from group' do
%i.icon-minus.icon-white
.panel-footer
= paginate @members, param_name: 'members_page', theme: 'gitlab'