diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 16:18:37 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 16:18:37 +0200 |
commit | 6743ecec597000315007b51bc3e45ea9c58cbaa7 (patch) | |
tree | 7d80a23130c978ae75d8c84078790d482a7fe43d /app | |
parent | 6350b32a3dddf70a28526c4f95c652072411e9c7 (diff) | |
download | gitlab-ce-6743ecec597000315007b51bc3e45ea9c58cbaa7.tar.gz |
Fix redirects. Add link to new team and new group
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/admin/teams_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/teams_controller.rb | 2 | ||||
-rw-r--r-- | app/views/projects/_new_form.html.haml | 18 |
3 files changed, 15 insertions, 7 deletions
diff --git a/app/controllers/admin/teams_controller.rb b/app/controllers/admin/teams_controller.rb index 335add0f57d..786957cbc59 100644 --- a/app/controllers/admin/teams_controller.rb +++ b/app/controllers/admin/teams_controller.rb @@ -47,7 +47,7 @@ class Admin::TeamsController < Admin::ApplicationController def destroy user_team.destroy - redirect_to admin_user_teams_path, notice: 'Team of users was successfully deleted.' + redirect_to admin_teams_path, notice: 'Team of users was successfully deleted.' end protected diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb index e69a092c507..1ac0d5696b6 100644 --- a/app/controllers/teams_controller.rb +++ b/app/controllers/teams_controller.rb @@ -28,7 +28,7 @@ class TeamsController < ApplicationController def destroy user_team.destroy - redirect_to teams_path + redirect_to dashboard_path end def new diff --git a/app/views/projects/_new_form.html.haml b/app/views/projects/_new_form.html.haml index ba8f255558a..41a602147ca 100644 --- a/app/views/projects/_new_form.html.haml +++ b/app/views/projects/_new_form.html.haml @@ -15,12 +15,20 @@ %span Namespace .input = f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen'} - - elsif current_user.can_create_group? + + %p.padded + New projects are private by default. You choose who can see the project and commit to repository. + %hr + + - if current_user.can_create_group? .clearfix .input.light - Need a group for several projects? + Need a group for several dependent projects? = link_to new_group_path, class: "btn very_small" do Create a group - %hr - %p.padded - New projects are private by default. You choose who can see the project and commit to repository. + - if current_user.can_create_team? + .clearfix + .input.light + Want to share a team between projects? + = link_to new_team_path, class: "btn very_small" do + Create a team |