gitlabhq/app/views/projects/_team.html.haml
Dmitriy Zaporozhets 8cc25ef94e cleaning UI
2012-01-15 22:36:32 +02:00

20 lines
556 B
Plaintext

%table.no-borders#team-table
%thead
%th Name
%th Project
%th Repository
- 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(){
$('#team-table .repo-access-select, #team-table .project-access-select').live("change", function() {
$(this.form).submit();
});
})
$('.delete-team-member').live('ajax:success', function() {
$(this).closest('tr').fadeOut(); });