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)) }" }
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
|
||||
.actions
|
||||
= f.submit 'Save', class: "btn save-btn"
|
||||
= link_to "Cancel", team_project_path(@project), class: "btn cancel-btn"
|
||||
= link_to "Cancel", project_team_index_path(@project), class: "btn cancel-btn"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
= render "project_head"
|
||||
= render "projects/project_head"
|
||||
%h3.page_title
|
||||
Team Members
|
||||
%small (#{@project.users_projects.count})
|
||||
|
@ -10,6 +10,4 @@
|
|||
Read more about project permissions
|
||||
%strong= link_to "here", help_permissions_path, class: "vlink"
|
||||
|
||||
|
||||
= render partial: "team", locals: {project: @project}
|
||||
|
||||
= render partial: "team_members/team", locals: {project: @project}
|
|
@ -14,7 +14,7 @@
|
|||
%hr
|
||||
.back_link
|
||||
%br
|
||||
= link_to team_project_path(@project), class: "" do
|
||||
= link_to project_team_index_path(@project), class: "" do
|
||||
← To team list
|
||||
%br
|
||||
.row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue