Commit c351b8a3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

remove yaml_db gem, Replace team members index route with team_index

parent 7786fe7c
...@@ -32,9 +32,6 @@ gem 'gitlab-grack', '~> 1.0.0', require: 'grack' ...@@ -32,9 +32,6 @@ gem 'gitlab-grack', '~> 1.0.0', require: 'grack'
# LDAP Auth # LDAP Auth
gem 'gitlab_omniauth-ldap', '1.0.2', require: "omniauth-ldap" 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 # Syntax highlighter
gem "gitlab-pygments.rb", '~> 0.3.2', require: 'pygments.rb' gem "gitlab-pygments.rb", '~> 0.3.2', require: 'pygments.rb'
......
...@@ -181,7 +181,6 @@ GEM ...@@ -181,7 +181,6 @@ GEM
omniauth (~> 1.0) omniauth (~> 1.0)
pyu-ruby-sasl (~> 0.0.3.1) pyu-ruby-sasl (~> 0.0.3.1)
rubyntlm (~> 0.1.1) rubyntlm (~> 0.1.1)
gitlab_yaml_db (1.0.0)
gon (4.0.2) gon (4.0.2)
grape (0.3.2) grape (0.3.2)
activesupport activesupport
...@@ -521,7 +520,6 @@ DEPENDENCIES ...@@ -521,7 +520,6 @@ DEPENDENCIES
gitlab-pygments.rb (~> 0.3.2) gitlab-pygments.rb (~> 0.3.2)
gitlab_meta (= 5.0) gitlab_meta (= 5.0)
gitlab_omniauth-ldap (= 1.0.2) gitlab_omniauth-ldap (= 1.0.2)
gitlab_yaml_db (= 1.0.0)
gollum (~> 2.4.0)! gollum (~> 2.4.0)!
gon gon
grape (~> 0.3.1) grape (~> 0.3.1)
......
...@@ -52,7 +52,7 @@ class TeamMembersController < ProjectResourceController ...@@ -52,7 +52,7 @@ class TeamMembersController < ProjectResourceController
status = @project.team.import(giver) status = @project.team.import(giver)
notice = status ? "Succesfully imported" : "Import failed" 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 end
protected protected
......
...@@ -22,22 +22,22 @@ ...@@ -22,22 +22,22 @@
.span3 .span3
%ul.nav.nav-pills.nav-stacked %ul.nav.nav-pills.nav-stacked
%li{class: ("active" if !params[:type])} %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 All
%li{class: ("active" if params[:type] == 'masters')} %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 Masters
%span.pull-right= @project.users_projects.masters.count %span.pull-right= @project.users_projects.masters.count
%li{class: ("active" if params[:type] == 'developers')} %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 Developers
%span.pull-right= @project.users_projects.developers.count %span.pull-right= @project.users_projects.developers.count
%li{class: ("active" if params[:type] == 'reporters')} %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 Reporters
%span.pull-right= @project.users_projects.reporters.count %span.pull-right= @project.users_projects.reporters.count
%li{class: ("active" if params[:type] == 'guests')} %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 Guests
%span.pull-right= @project.users_projects.guests.count %span.pull-right= @project.users_projects.guests.count
......
...@@ -270,7 +270,7 @@ Gitlab::Application.routes.draw do ...@@ -270,7 +270,7 @@ Gitlab::Application.routes.draw do
end end
end end
resources :team_members do resources :team_members, except: [:index, :edit] do
collection do collection do
# Used for import team # Used for import team
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment