Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « groups « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6367e0473793c1d2f2a2cd81949216675cd366b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%h3.page-title
  Group membership
  - if current_user.can_create_group?
    %span.pull-right
      = link_to new_group_path, class: "btn btn-new" do
        %i.icon-plus
        New Group
%p.light
  Group members have access to all a group's projects
%hr
.panel.panel-default
  .title
    %strong Groups
    (#{@user_groups.count})
  %ul.well-list
    - @user_groups.each do |user_group|
      - group = user_group.group
      %li
        .pull-right
          - if can?(current_user, :manage_group, group)
            = link_to edit_group_path(group), class: "btn-small btn btn-grouped" do
              %i.icon-cogs
              Settings

          - if can?(current_user, :destroy, user_group)
            = link_to leave_profile_group_path(group), data: { confirm: leave_group_message(group.name) }, method: :delete, class: "btn-small btn btn-grouped", title: 'Remove user from group' do
              %i.icon-signout
              Leave

        = link_to group, class: 'group-name' do
          %strong= group.name

        as
        %strong #{user_group.human_access}

        %div.light
          #{pluralize(group.projects.count, "project")}, #{pluralize(group.users.count, "user")}

= paginate @user_groups