diff --git a/app/views/shared/_navigation.html.erb b/app/views/shared/_navigation.html.erb index c402faf41..31e73daa3 100644 --- a/app/views/shared/_navigation.html.erb +++ b/app/views/shared/_navigation.html.erb @@ -116,17 +116,16 @@ <% end %> <% end %> - <% if current_user.teams.length > 1 %> - + <% if current_user.teams.length > 1 && can_create_teams? %> + +
  • + <%= link_to new_team_path do %> + + <%= t('users.settings.teams.index.new_team') %> + <% end %> +
  • <% end %> -
  • - <%= link_to new_team_path do %> - - <%= t('users.settings.teams.index.new_team') %> - <% end %> -
  • <% end %> @@ -258,19 +257,21 @@ <%= image_tag avatar_path(current_user, :icon_small), class: "avatar" %> - + <% if current_user.teams.length > 1 || can_create_teams? %> + + <% end %> diff --git a/app/views/users/settings/teams/index.html.erb b/app/views/users/settings/teams/index.html.erb index 265f335c6..13c749e0b 100644 --- a/app/views/users/settings/teams/index.html.erb +++ b/app/views/users/settings/teams/index.html.erb @@ -13,14 +13,16 @@ <% else %> <%= t("users.settings.teams.index.no_teams") %> <% end %> - - <%= link_to new_team_path, class: "btn btn-default", style: "margin-left: 30px;" do %> - - - <% end %> - + <% if can_create_teams? %> + + <%= link_to new_team_path, class: "btn btn-default", style: "margin-left: 30px;" do %> + + + <% end %> + + <% end %> <% if @member_of > 0 %>