gitlabhq/app/views/teams/projects/index.html.haml

37 lines
1.2 KiB
Plaintext
Raw Normal View History

%h3.page_title
Assigned projects (#{@team.projects.count})
%small
Read more about project permissions
%strong= link_to "here", help_permissions_path, class: "vlink"
2013-01-19 18:48:05 +01:00
- if current_user.can?(:manage_user_team, @team) && @avaliable_projects.any?
2013-01-30 15:40:43 +01:00
%span.pull-right
2013-01-29 21:18:19 +01:00
= link_to new_team_project_path(@team), class: "btn btn-primary small grouped", title: "New Team Member" do
Assign project to Team
2013-01-19 18:48:05 +01:00
%hr
2013-01-25 15:36:14 +01:00
- 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)
2013-01-25 15:36:14 +01:00
- if current_user.can?(:admin_user_team, @team)
%td.bgred
2013-01-29 21:29:21 +01:00
= link_to 'Edit max access', edit_team_project_path(@team, project), class: "btn btn-small"
2013-01-29 21:18:19 +01:00
= 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"
2013-01-25 15:36:14 +01:00
- else
%p.nothing_here_message This team has no projects yet