summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-01 12:03:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-01 12:03:48 +0000
commit47f5713b1e1cbe636582fd3f59fadc10dd8491a1 (patch)
tree1445d5a47586270596067bbbf53ff409f6078758 /app/controllers
parent56bdcf407f898067d5bef188e5df5ad273000e5c (diff)
downloadredmine-47f5713b1e1cbe636582fd3f59fadc10dd8491a1.tar.gz
redmine-47f5713b1e1cbe636582fd3f59fadc10dd8491a1.zip
Reorder links refactoring (follows r2526).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2546 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/boards_controller.rb6
-rw-r--r--app/controllers/custom_fields_controller.rb15
-rw-r--r--app/controllers/enumerations_controller.rb15
-rw-r--r--app/controllers/issue_statuses_controller.rb15
-rw-r--r--app/controllers/roles_controller.rb15
5 files changed, 0 insertions, 66 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb
index 55a9737f5..838e63a7c 100644
--- a/app/controllers/boards_controller.rb
+++ b/app/controllers/boards_controller.rb
@@ -62,12 +62,6 @@ class BoardsController < ApplicationController
def edit
if request.post? && @board.update_attributes(params[:board])
- case params[:position]
- when 'highest'; @board.move_to_top
- when 'higher'; @board.move_higher
- when 'lower'; @board.move_lower
- when 'lowest'; @board.move_to_bottom
- end if params[:position]
redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards'
end
end
diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb
index 5a79e4b7b..73ae8096a 100644
--- a/app/controllers/custom_fields_controller.rb
+++ b/app/controllers/custom_fields_controller.rb
@@ -47,21 +47,6 @@ class CustomFieldsController < ApplicationController
end
@trackers = Tracker.find(:all, :order => 'position')
end
-
- def move
- @custom_field = CustomField.find(params[:id])
- case params[:position]
- when 'highest'
- @custom_field.move_to_top
- when 'higher'
- @custom_field.move_higher
- when 'lower'
- @custom_field.move_lower
- when 'lowest'
- @custom_field.move_to_bottom
- end if params[:position]
- redirect_to :action => 'index', :tab => @custom_field.class.name
- end
def destroy
@custom_field = CustomField.find(params[:id]).destroy
diff --git a/app/controllers/enumerations_controller.rb b/app/controllers/enumerations_controller.rb
index 6e136fba4..ac55c421e 100644
--- a/app/controllers/enumerations_controller.rb
+++ b/app/controllers/enumerations_controller.rb
@@ -57,21 +57,6 @@ class EnumerationsController < ApplicationController
render :action => 'edit'
end
end
-
- def move
- @enumeration = Enumeration.find(params[:id])
- case params[:position]
- when 'highest'
- @enumeration.move_to_top
- when 'higher'
- @enumeration.move_higher
- when 'lower'
- @enumeration.move_lower
- when 'lowest'
- @enumeration.move_to_bottom
- end if params[:position]
- redirect_to :action => 'index'
- end
def destroy
@enumeration = Enumeration.find(params[:id])
diff --git a/app/controllers/issue_statuses_controller.rb b/app/controllers/issue_statuses_controller.rb
index 69d9db965..bee7f4833 100644
--- a/app/controllers/issue_statuses_controller.rb
+++ b/app/controllers/issue_statuses_controller.rb
@@ -58,21 +58,6 @@ class IssueStatusesController < ApplicationController
render :action => 'edit'
end
end
-
- def move
- @issue_status = IssueStatus.find(params[:id])
- case params[:position]
- when 'highest'
- @issue_status.move_to_top
- when 'higher'
- @issue_status.move_higher
- when 'lower'
- @issue_status.move_lower
- when 'lowest'
- @issue_status.move_to_bottom
- end if params[:position]
- redirect_to :action => 'list'
- end
def destroy
IssueStatus.find(params[:id]).destroy
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index ab70ebf41..6185d70ef 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -64,21 +64,6 @@ class RolesController < ApplicationController
redirect_to :action => 'index'
end
- def move
- @role = Role.find(params[:id])
- case params[:position]
- when 'highest'
- @role.move_to_top
- when 'higher'
- @role.move_higher
- when 'lower'
- @role.move_lower
- when 'lowest'
- @role.move_to_bottom
- end if params[:position]
- redirect_to :action => 'list'
- end
-
def report
@roles = Role.find(:all, :order => 'builtin, position')
@permissions = Redmine::AccessControl.permissions.select { |p| !p.public? }