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
|
2011-12-07 09:04:57 +01:00
|
|
|
%th Project Access
|
|
|
|
%th Repo Access
|
2011-10-26 15:46:25 +02:00
|
|
|
%th Added
|
|
|
|
%th
|
2011-10-08 23:36:38 +02:00
|
|
|
%th
|
|
|
|
- members.each do |tm|
|
|
|
|
- user = tm.user
|
|
|
|
%tr
|
2011-12-07 09:04:57 +01:00
|
|
|
%td.span-6
|
|
|
|
= link_to tm.user_name, admin_team_member_path(tm)
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
= tm.user_email
|
|
|
|
%td.span-3= select_tag :project_access, options_for_select(Project.access_options, tm.project_access), :class => "project-access-select", :disabled => :disabled
|
|
|
|
%td.span-3= select_tag :repo_access, options_for_select(Repository.access_options, tm.repo_access), :class => "repo-access-select", :disabled => :disabled
|
2011-10-08 23:36:38 +02:00
|
|
|
%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
|
2012-01-27 08:19:55 +01:00
|
|
|
= link_to 'New Team Member', new_admin_team_member_path, :class => "btn"
|