summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-11 09:39:49 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-11 09:39:49 +0300
commitc351b8a3e53c05c73f3365cc738c9437e8774392 (patch)
tree0d869ac9b5c492f271d36c5a201b96659db4293a
parent7786fe7ca84503ac2f00253f7097c754c51c1062 (diff)
downloadgitlab-ce-c351b8a3e53c05c73f3365cc738c9437e8774392.tar.gz
remove yaml_db gem, Replace team members index route with team_index
-rw-r--r--Gemfile3
-rw-r--r--Gemfile.lock2
-rw-r--r--app/controllers/team_members_controller.rb2
-rw-r--r--app/views/team_members/index.html.haml10
-rw-r--r--config/routes.rb2
5 files changed, 7 insertions, 12 deletions
diff --git a/Gemfile b/Gemfile
index 075c4d90d30..b7fe7790fca 100644
--- a/Gemfile
+++ b/Gemfile
@@ -32,9 +32,6 @@ gem 'gitlab-grack', '~> 1.0.0', require: 'grack'
# LDAP Auth
gem 'gitlab_omniauth-ldap', '1.0.2', require: "omniauth-ldap"
-# Dump db to yml file. Mostly used to migrate from sqlite to mysql
-gem 'gitlab_yaml_db', '1.0.0', require: "yaml_db"
-
# Syntax highlighter
gem "gitlab-pygments.rb", '~> 0.3.2', require: 'pygments.rb'
diff --git a/Gemfile.lock b/Gemfile.lock
index 41d24c6aad5..dc7bbcdcf43 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -181,7 +181,6 @@ GEM
omniauth (~> 1.0)
pyu-ruby-sasl (~> 0.0.3.1)
rubyntlm (~> 0.1.1)
- gitlab_yaml_db (1.0.0)
gon (4.0.2)
grape (0.3.2)
activesupport
@@ -521,7 +520,6 @@ DEPENDENCIES
gitlab-pygments.rb (~> 0.3.2)
gitlab_meta (= 5.0)
gitlab_omniauth-ldap (= 1.0.2)
- gitlab_yaml_db (= 1.0.0)
gollum (~> 2.4.0)!
gon
grape (~> 0.3.1)
diff --git a/app/controllers/team_members_controller.rb b/app/controllers/team_members_controller.rb
index ba55648adad..35aa315dac1 100644
--- a/app/controllers/team_members_controller.rb
+++ b/app/controllers/team_members_controller.rb
@@ -52,7 +52,7 @@ class TeamMembersController < ProjectResourceController
status = @project.team.import(giver)
notice = status ? "Succesfully imported" : "Import failed"
- redirect_to project_team_members_path(project), notice: notice
+ redirect_to project_team_index_path(project), notice: notice
end
protected
diff --git a/app/views/team_members/index.html.haml b/app/views/team_members/index.html.haml
index 50d44bcd8d8..3132fd5ca8a 100644
--- a/app/views/team_members/index.html.haml
+++ b/app/views/team_members/index.html.haml
@@ -22,22 +22,22 @@
.span3
%ul.nav.nav-pills.nav-stacked
%li{class: ("active" if !params[:type])}
- = link_to project_team_members_path(type: nil) do
+ = link_to project_team_index_path(type: nil) do
All
%li{class: ("active" if params[:type] == 'masters')}
- = link_to project_team_members_path(type: 'masters') do
+ = link_to project_team_index_path(type: 'masters') do
Masters
%span.pull-right= @project.users_projects.masters.count
%li{class: ("active" if params[:type] == 'developers')}
- = link_to project_team_members_path(type: 'developers') do
+ = link_to project_team_index_path(type: 'developers') do
Developers
%span.pull-right= @project.users_projects.developers.count
%li{class: ("active" if params[:type] == 'reporters')}
- = link_to project_team_members_path(type: 'reporters') do
+ = link_to project_team_index_path(type: 'reporters') do
Reporters
%span.pull-right= @project.users_projects.reporters.count
%li{class: ("active" if params[:type] == 'guests')}
- = link_to project_team_members_path(type: 'guests') do
+ = link_to project_team_index_path(type: 'guests') do
Guests
%span.pull-right= @project.users_projects.guests.count
diff --git a/config/routes.rb b/config/routes.rb
index 5973a1aff43..18475e03277 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -270,7 +270,7 @@ Gitlab::Application.routes.draw do
end
end
- resources :team_members do
+ resources :team_members, except: [:index, :edit] do
collection do
# Used for import team