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

index.html.haml « team_members « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4076917da647f9c5571a0a2f48a46ac8ae74e277 (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
- @admin_team_members.group_by(&:project).sort.each do |project, members|
  %h3= link_to project.name, [:admin, project]
  %table
    %tr
      %th Name
      %th Email
      %th Read
      %th Git
      %th Manage
      %th Added 
      %th 
      %th
      %th
    - members.each do |tm|
      - user = tm.user
      %tr
        %td.span-6= tm.user_name
        %td.span-6= tm.user_email
        %td.span-1= check_box_tag "read",   1, project.readers.include?(user), :disabled => :disabled
        %td.span-1= check_box_tag "commit", 1, project.writers.include?(user), :disabled => :disabled
        %td.span-2= check_box_tag "admin",  1, project.admins.include?(user), :disabled => :disabled
        %td.span-3= time_ago_in_words(tm.updated_at) + " ago"
        %td= link_to 'Show', admin_team_member_path(tm)
        %td= link_to 'Edit', edit_admin_team_member_path(tm), :id => "edit_#{dom_id(tm)}"
        %td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete

%br

= paginate @admin_team_members
= link_to 'New Team Member', new_admin_team_member_path