2013-03-18 13:35:27 -04:00
|
|
|
= render "projects/settings_nav"
|
2012-06-30 17:35:24 -04:00
|
|
|
%h3.page_title
|
2012-05-24 02:23:25 -04:00
|
|
|
Team Members
|
2013-01-22 12:20:39 -05:00
|
|
|
(#{@project.users.count})
|
2012-11-30 11:26:17 -05:00
|
|
|
%small
|
2012-06-03 18:37:27 -04:00
|
|
|
Read more about project permissions
|
2012-08-10 18:07:50 -04:00
|
|
|
%strong= link_to "here", help_permissions_path, class: "vlink"
|
2012-02-15 16:51:04 -05:00
|
|
|
|
2012-11-30 11:26:17 -05:00
|
|
|
- if can? current_user, :admin_team_member, @project
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.pull-right
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to import_project_team_members_path(@project), class: "btn btn-small grouped", title: "Import team from another project" do
|
2012-10-24 07:20:53 -04:00
|
|
|
Import team from another project
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to available_project_teams_path(@project), class: "btn btn-small grouped", title: "Assign project to team of users" do
|
2013-01-23 09:14:20 -05:00
|
|
|
Assign project to Team of users
|
2013-01-29 15:18:19 -05:00
|
|
|
= link_to new_project_team_member_path(@project), class: "btn btn-primary small grouped", title: "New Team Member" do
|
2012-10-24 07:20:53 -04:00
|
|
|
New Team Member
|
2012-11-30 11:26:17 -05:00
|
|
|
|
2013-01-23 09:14:20 -05:00
|
|
|
%hr
|
2012-10-24 07:20:53 -04:00
|
|
|
|
2012-11-30 11:26:17 -05:00
|
|
|
.clearfix
|
2013-02-18 14:10:49 -05:00
|
|
|
.row
|
|
|
|
.span3
|
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
%li{class: ("active" if !params[:type])}
|
2013-04-11 02:39:49 -04:00
|
|
|
= link_to project_team_index_path(type: nil) do
|
2013-02-18 14:10:49 -05:00
|
|
|
All
|
|
|
|
%li{class: ("active" if params[:type] == 'masters')}
|
2013-04-11 02:39:49 -04:00
|
|
|
= link_to project_team_index_path(type: 'masters') do
|
2013-02-18 14:10:49 -05:00
|
|
|
Masters
|
2013-02-18 14:21:24 -05:00
|
|
|
%span.pull-right= @project.users_projects.masters.count
|
2013-02-18 14:10:49 -05:00
|
|
|
%li{class: ("active" if params[:type] == 'developers')}
|
2013-04-11 02:39:49 -04:00
|
|
|
= link_to project_team_index_path(type: 'developers') do
|
2013-02-18 14:10:49 -05:00
|
|
|
Developers
|
2013-02-18 14:21:24 -05:00
|
|
|
%span.pull-right= @project.users_projects.developers.count
|
2013-02-18 14:10:49 -05:00
|
|
|
%li{class: ("active" if params[:type] == 'reporters')}
|
2013-04-11 02:39:49 -04:00
|
|
|
= link_to project_team_index_path(type: 'reporters') do
|
2013-02-18 14:10:49 -05:00
|
|
|
Reporters
|
2013-02-18 14:21:24 -05:00
|
|
|
%span.pull-right= @project.users_projects.reporters.count
|
2013-02-18 14:10:49 -05:00
|
|
|
%li{class: ("active" if params[:type] == 'guests')}
|
2013-04-11 02:39:49 -04:00
|
|
|
= link_to project_team_index_path(type: 'guests') do
|
2013-02-18 14:10:49 -05:00
|
|
|
Guests
|
2013-02-18 14:21:24 -05:00
|
|
|
%span.pull-right= @project.users_projects.guests.count
|
|
|
|
|
|
|
|
- if @assigned_teams.present?
|
|
|
|
%h5
|
|
|
|
Assigned teams
|
|
|
|
(#{@project.user_teams.count})
|
|
|
|
%div
|
|
|
|
= render "team_members/assigned_teams", assigned_teams: @assigned_teams
|
2013-01-23 09:14:20 -05:00
|
|
|
|
2013-02-18 14:10:49 -05:00
|
|
|
.span9
|
|
|
|
%div.team-table
|
2013-02-18 14:21:24 -05:00
|
|
|
= render "team_members/team", team: @team
|
2013-01-23 09:14:20 -05:00
|
|
|
|
|
|
|
|
|
|
|
|