route: simplify project settings and issues copy route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8417 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f2b8672f08
commit
6c3987bbe6
|
@ -192,11 +192,11 @@ ActionController::Routing::Routes.draw do |map|
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: port to be part of the resources route(s)
|
# TODO: port to be part of the resources route(s)
|
||||||
map.with_options :controller => 'projects' do |project_mapper|
|
map.with_options :conditions => {:method => :get} do |project_views|
|
||||||
project_mapper.with_options :conditions => {:method => :get} do |project_views|
|
project_views.connect 'projects/:id/settings/:tab',
|
||||||
project_views.connect 'projects/:id/settings/:tab', :controller => 'projects', :action => 'settings'
|
:controller => 'projects', :action => 'settings'
|
||||||
project_views.connect 'projects/:project_id/issues/:copy_from/copy', :controller => 'issues', :action => 'new'
|
project_views.connect 'projects/:project_id/issues/:copy_from/copy',
|
||||||
end
|
:controller => 'issues', :action => 'new'
|
||||||
end
|
end
|
||||||
|
|
||||||
map.with_options :controller => 'activities', :action => 'index',
|
map.with_options :controller => 'activities', :action => 'index',
|
||||||
|
|
Loading…
Reference in New Issue