BigW Consortium Gitlab

show.html.haml 2.84 KB
Newer Older
1
%h3.page-title
2 3
  Group: #{@group.name}

4
  = link_to edit_admin_group_path(@group), class: "btn pull-right" do
5
    %i.fa.fa-pencil-square-o
6 7 8
    Edit
%hr
.row
9
  .col-md-6
10
    .panel.panel-default
11
      .panel-heading
12 13
        Group info:
      %ul.well-list
14
        %li
15
          = image_tag group_icon(@group), class: "avatar s60"
16 17 18 19 20 21 22
        %li
          %span.light Name:
          %strong= @group.name
        %li
          %span.light Path:
          %strong
            = @group.path
23

24 25 26 27
        %li
          %span.light Description:
          %strong
            = @group.description
28

29
        %li
30
          %span.light Created on:
31 32
          %strong
            = @group.created_at.stamp("March 1, 1999")
33

34
    .panel.panel-default
35
      .panel-heading
36 37 38 39
        %h3.panel-title
          Projects
          %span.badge
            #{@group.projects.count}
40
      %ul.well-list
41
        - @projects.each do |project|
42 43
          %li
            %strong
Vinnie Okada committed
44
              = link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
45 46
              %span.label.label-gray
                = repository_size(project)
47 48
            %span.pull-right.light
              %span.monospace= project.path_with_namespace + ".git"
49 50
      .panel-footer
        = paginate @projects, param_name: 'projects_page', theme: 'gitlab'
51

52
  .col-md-6
53
    .panel.panel-default
54
      .panel-heading
55
        Add user(s) to the group:
56
      .panel-body.form-holder
57
        %p.light
58
          Read more about project permissions
59
          %strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
60

61
        = form_tag members_update_admin_group_path(@group), id: "new_project_member", class: "bulk_import", method: :put  do
62 63 64
          %div
            = users_select_tag(:user_ids, multiple: true)
          %div.prepend-top-10
65
            = select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2"
66
          %hr
67
          = button_tag 'Add users to group', class: "btn btn-create"
68
    .panel.panel-default
69
      .panel-heading
70 71 72
        %h3.panel-title
          Members
          %span.badge
73
            #{@group.group_members.count}
74
      %ul.well-list.group-users-list
75
        - @members.each do |member|
76
          - user = member.user
77
          %li{class: dom_class(member), id: dom_id(user)}
78 79 80
            .list-item-name
              %strong
                = link_to user.name, admin_user_path(user)
81
            %span.pull-right.light
82
              = member.human_access
Dmitriy Zaporozhets committed
83
              = link_to group_group_member_path(@group, member), data: { confirm: remove_user_from_group_message(@group, user) }, method: :delete, remote: true, class: "btn-xs btn btn-remove", title: 'Remove user from group' do
84
                %i.fa.fa-minus.fa-inverse
85 86
      .panel-footer
        = paginate @members, param_name: 'members_page', theme: 'gitlab'