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

_team.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bb9063369c3b2b905c211dc5361ac5d50e4d598e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- 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 => "lbutton vm"
%table.round-borders#team-table
  %tr
    %th Name
    %th Email
    %th Web
    %th Git
    %th Admin
    - 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
  $('.delete-team-member').live('ajax:success', function() {  
    $(this).closest('tr').fadeOut(); });