gitlabhq/app/views/admin/team_members/index.html.haml

29 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- @admin_team_members.group_by(&:project).sort.each do |project, members|
%h3= link_to project.name, [:admin, project]
%table
2011-11-02 16:21:17 +01:00
%thead
2011-10-08 23:36:38 +02:00
%th Name
%th Email
%th Read
%th Git
%th Manage
%th Added
%th
2011-10-08 23:36:38 +02:00
%th
- members.each do |tm|
- user = tm.user
%tr
2011-10-14 23:12:02 +02:00
%td.span-6= link_to tm.user_name, admin_team_member_path(tm)
2011-10-08 23:36:38 +02:00
%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 '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, :class => "grey-button"