gitlabhq/app/views/projects/_team.html.haml

24 lines
725 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- if can? current_user, :admin_team_member, @project
%div#new-member-holder
= link_to "Add new", new_project_team_member_path(@project), :remote => true, :class => "grey-button"
%br
2011-10-08 23:36:38 +02:00
%table.round-borders#team-table
2011-11-01 21:11:24 +01:00
%thead
2011-10-08 23:36:38 +02:00
%th Name
%th Project
%th Repository
2011-10-08 23:36:38 +02:00
- if can? current_user, :admin_team_member, @project
%th Actions
- @project.users_projects.each do |up|
= render(:partial => 'team_members/show', :locals => {:member => up})
:javascript
$(function(){
$('.repo-access-select, .project-access-select').live("change", function() {
$(this.form).submit();
});
})
$('.delete-team-member').live('ajax:success', function() {
$(this).closest('tr').fadeOut(); });