Commit c351b8a3e53c05c73f3365cc738c9437e8774392
1 parent
7786fe7c
Exists in
master
and in
4 other branches
remove yaml_db gem, Replace team members index route with team_index
Showing
5 changed files
with
7 additions
and
12 deletions
Show diff stats
Gemfile
... | ... | @@ -32,9 +32,6 @@ gem 'gitlab-grack', '~> 1.0.0', require: 'grack' |
32 | 32 | # LDAP Auth |
33 | 33 | gem 'gitlab_omniauth-ldap', '1.0.2', require: "omniauth-ldap" |
34 | 34 | |
35 | -# Dump db to yml file. Mostly used to migrate from sqlite to mysql | |
36 | -gem 'gitlab_yaml_db', '1.0.0', require: "yaml_db" | |
37 | - | |
38 | 35 | # Syntax highlighter |
39 | 36 | gem "gitlab-pygments.rb", '~> 0.3.2', require: 'pygments.rb' |
40 | 37 | ... | ... |
Gemfile.lock
... | ... | @@ -181,7 +181,6 @@ GEM |
181 | 181 | omniauth (~> 1.0) |
182 | 182 | pyu-ruby-sasl (~> 0.0.3.1) |
183 | 183 | rubyntlm (~> 0.1.1) |
184 | - gitlab_yaml_db (1.0.0) | |
185 | 184 | gon (4.0.2) |
186 | 185 | grape (0.3.2) |
187 | 186 | activesupport |
... | ... | @@ -521,7 +520,6 @@ DEPENDENCIES |
521 | 520 | gitlab-pygments.rb (~> 0.3.2) |
522 | 521 | gitlab_meta (= 5.0) |
523 | 522 | gitlab_omniauth-ldap (= 1.0.2) |
524 | - gitlab_yaml_db (= 1.0.0) | |
525 | 523 | gollum (~> 2.4.0)! |
526 | 524 | gon |
527 | 525 | grape (~> 0.3.1) | ... | ... |
app/controllers/team_members_controller.rb
... | ... | @@ -52,7 +52,7 @@ class TeamMembersController < ProjectResourceController |
52 | 52 | status = @project.team.import(giver) |
53 | 53 | notice = status ? "Succesfully imported" : "Import failed" |
54 | 54 | |
55 | - redirect_to project_team_members_path(project), notice: notice | |
55 | + redirect_to project_team_index_path(project), notice: notice | |
56 | 56 | end |
57 | 57 | |
58 | 58 | protected | ... | ... |
app/views/team_members/index.html.haml
... | ... | @@ -22,22 +22,22 @@ |
22 | 22 | .span3 |
23 | 23 | %ul.nav.nav-pills.nav-stacked |
24 | 24 | %li{class: ("active" if !params[:type])} |
25 | - = link_to project_team_members_path(type: nil) do | |
25 | + = link_to project_team_index_path(type: nil) do | |
26 | 26 | All |
27 | 27 | %li{class: ("active" if params[:type] == 'masters')} |
28 | - = link_to project_team_members_path(type: 'masters') do | |
28 | + = link_to project_team_index_path(type: 'masters') do | |
29 | 29 | Masters |
30 | 30 | %span.pull-right= @project.users_projects.masters.count |
31 | 31 | %li{class: ("active" if params[:type] == 'developers')} |
32 | - = link_to project_team_members_path(type: 'developers') do | |
32 | + = link_to project_team_index_path(type: 'developers') do | |
33 | 33 | Developers |
34 | 34 | %span.pull-right= @project.users_projects.developers.count |
35 | 35 | %li{class: ("active" if params[:type] == 'reporters')} |
36 | - = link_to project_team_members_path(type: 'reporters') do | |
36 | + = link_to project_team_index_path(type: 'reporters') do | |
37 | 37 | Reporters |
38 | 38 | %span.pull-right= @project.users_projects.reporters.count |
39 | 39 | %li{class: ("active" if params[:type] == 'guests')} |
40 | - = link_to project_team_members_path(type: 'guests') do | |
40 | + = link_to project_team_index_path(type: 'guests') do | |
41 | 41 | Guests |
42 | 42 | %span.pull-right= @project.users_projects.guests.count |
43 | 43 | ... | ... |
config/routes.rb