Skip to content

Commit 5bc61ba

Browse files
committed
bugfix: remove all teams from the settings ui
1 parent e1608be commit 5bc61ba

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

app/controllers/settings/teams_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class TeamsController < Settings::BaseController
99

1010
def index
1111
@your_teams = user_signed_in? ? current_user.teams.includes(team_members: :user) : []
12-
@all_teams = Team.includes(team_members: :user).order(:name)
1312
end
1413

1514
def show

app/views/settings/teams/index.html.slim

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,3 @@
2020
= f.label :name
2121
= f.text_field :name, required: true, placeholder: "Team name"
2222
= f.submit "Create team", class: "button-primary"
23-
24-
.teams-section
25-
h2 All teams
26-
- if @all_teams.any?
27-
ul.team-list
28-
- @all_teams.each do |team|
29-
li
30-
= link_to team.name, settings_team_path(team)
31-
span.team-meta = " - #{team.team_members.count} member(s)"
32-
- else
33-
p No teams yet.

0 commit comments

Comments
 (0)