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

index.html.haml « projects « teams « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: de2bee093ecc0596baeb40362a0f85cc189da600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%h3.page_title
  Assigned projects (#{@team.projects.count})
  %small
    Read more about project permissions
    %strong= link_to "here", help_permissions_path, class: "vlink"

  - if current_user.can?(:manage_user_team, @team) && @avaliable_projects.any?
    %span.right
      = link_to new_team_project_path(@team), class: "btn btn-primary small grouped", title: "New Team Member" do
        Assign project to Team

%hr

- if @team.projects.present?
  %table.projects-table
    %thead
      %tr
        %th Project name
        %th Max access
        - if current_user.can?(:admin_user_team, @team)
          %th.span3

    - @team.projects.each do |project|
      %tr.project
        %td
          = link_to project.name_with_namespace, project_path(project)
        %td
          %span= @team.human_max_project_access(project)

        - if current_user.can?(:admin_user_team, @team)
          %td.bgred
            = link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn btn-small"
            = link_to 'Relegate', team_project_path(@team, project), confirm: 'Remove project from team and move to global namespace. Are you sure?', method: :delete, class: "btn btn-remove small"

- else
  %p.nothing_here_message This team has no projects yet