Dont show assigned_teams block unless any. Show count in filter
This commit is contained in:
parent
a29db26cc9
commit
ba937b2b3d
5 changed files with 17 additions and 17 deletions
|
@ -7,6 +7,8 @@ class TeamMembersController < ProjectResourceController
|
|||
@team = @project.users_projects.scoped
|
||||
@team = @team.send(params[:type]) if %w(masters developers reporters guests).include?(params[:type])
|
||||
@team = @team.sort_by(&:project_access).reverse.group_by(&:project_access)
|
||||
|
||||
@assigned_teams = @project.user_team_project_relationships
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue