Remove Projects#team action
Uses TeamMembers#index instead, to be more RESTful
This commit is contained in:
parent
8cfb197dfc
commit
95bd93fe1a
11 changed files with 13 additions and 20 deletions
|
@ -3,8 +3,8 @@
|
|||
= link_to project_path(@project), class: "activities-tab tab" do
|
||||
%i.icon-home
|
||||
Show
|
||||
%li{ class: " #{'active' if (controller.controller_name == "team_members") || current_page?(team_project_path(@project)) }" }
|
||||
= link_to team_project_path(@project), class: "team-tab tab" do
|
||||
%li{ class: " #{'active' if (controller.controller_name == "team_members") || current_page?(project_team_index_path(@project)) }" }
|
||||
= link_to project_team_index_path(@project), class: "team-tab tab" do
|
||||
%i.icon-user
|
||||
Team
|
||||
%li{ class: "#{'active' if current_page?(files_project_path(@project)) }" }
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
- grouper_project_members(@project).each do |access, members|
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
%th.span7
|
||||
= Project.access_options.key(access).pluralize
|
||||
%th
|
||||
%tbody
|
||||
- members.each do |up|
|
||||
= render(partial: 'team_members/show', locals: {member: up})
|
||||
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
$('.repo-access-select, .project-access-select').live("change", function() {
|
||||
$(this.form).submit();
|
||||
});
|
||||
})
|
|
@ -1,15 +0,0 @@
|
|||
= render "project_head"
|
||||
%h3.page_title
|
||||
Team Members
|
||||
%small (#{@project.users_projects.count})
|
||||
|
||||
- if can? current_user, :admin_team_member, @project
|
||||
%p.slead
|
||||
= link_to new_project_team_member_path(@project), class: "btn small right", title: "New Team Member" do
|
||||
New Team Member
|
||||
Read more about project permissions
|
||||
%strong= link_to "here", help_permissions_path, class: "vlink"
|
||||
|
||||
|
||||
= render partial: "team", locals: {project: @project}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue