Mercurial > hg > soundsoftware-site
comparison config/.svn/text-base/routes.rb.svn-base @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 07fa8a8b56a8 |
children |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
12 map.signout 'logout', :controller => 'account', :action => 'logout' | 12 map.signout 'logout', :controller => 'account', :action => 'logout' |
13 | 13 |
14 map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow' | 14 map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow' |
15 map.connect 'help/:ctrl/:page', :controller => 'help' | 15 map.connect 'help/:ctrl/:page', :controller => 'help' |
16 | 16 |
17 map.connect 'projects/:project_id/time_entries/report', :controller => 'time_entry_reports', :action => 'report' | |
18 map.with_options :controller => 'time_entry_reports', :action => 'report',:conditions => {:method => :get} do |time_report| | 17 map.with_options :controller => 'time_entry_reports', :action => 'report',:conditions => {:method => :get} do |time_report| |
18 time_report.connect 'projects/:project_id/issues/:issue_id/time_entries/report' | |
19 time_report.connect 'projects/:project_id/issues/:issue_id/time_entries/report.:format' | |
20 time_report.connect 'projects/:project_id/time_entries/report' | |
21 time_report.connect 'projects/:project_id/time_entries/report.:format' | |
19 time_report.connect 'time_entries/report' | 22 time_report.connect 'time_entries/report' |
20 time_report.connect 'time_entries/report.:format' | 23 time_report.connect 'time_entries/report.:format' |
21 time_report.connect 'projects/:project_id/time_entries/report.:format' | 24 end |
22 end | 25 |
23 | 26 map.bulk_edit_time_entry 'time_entries/bulk_edit', |
27 :controller => 'timelog', :action => 'bulk_edit', :conditions => { :method => :get } | |
28 map.bulk_update_time_entry 'time_entries/bulk_edit', | |
29 :controller => 'timelog', :action => 'bulk_update', :conditions => { :method => :post } | |
30 map.time_entries_context_menu '/time_entries/context_menu', | |
31 :controller => 'context_menus', :action => 'time_entries' | |
24 # TODO: wasteful since this is also nested under issues, projects, and projects/issues | 32 # TODO: wasteful since this is also nested under issues, projects, and projects/issues |
25 map.resources :time_entries, :controller => 'timelog' | 33 map.resources :time_entries, :controller => 'timelog' |
26 | 34 |
27 map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post} | 35 map.connect 'projects/:id/wiki', :controller => 'wikis', :action => 'edit', :conditions => {:method => :post} |
28 map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :get} | 36 map.connect 'projects/:id/wiki/destroy', :controller => 'wikis', :action => 'destroy', :conditions => {:method => :get} |
78 map.bulk_edit_issue 'issues/bulk_edit', :controller => 'issues', :action => 'bulk_edit', :conditions => { :method => :get } | 86 map.bulk_edit_issue 'issues/bulk_edit', :controller => 'issues', :action => 'bulk_edit', :conditions => { :method => :get } |
79 map.bulk_update_issue 'issues/bulk_edit', :controller => 'issues', :action => 'bulk_update', :conditions => { :method => :post } | 87 map.bulk_update_issue 'issues/bulk_edit', :controller => 'issues', :action => 'bulk_update', :conditions => { :method => :post } |
80 map.quoted_issue '/issues/:id/quoted', :controller => 'journals', :action => 'new', :id => /\d+/, :conditions => { :method => :post } | 88 map.quoted_issue '/issues/:id/quoted', :controller => 'journals', :action => 'new', :id => /\d+/, :conditions => { :method => :post } |
81 map.connect '/issues/:id/destroy', :controller => 'issues', :action => 'destroy', :conditions => { :method => :post } # legacy | 89 map.connect '/issues/:id/destroy', :controller => 'issues', :action => 'destroy', :conditions => { :method => :post } # legacy |
82 | 90 |
83 map.resource :gantt, :path_prefix => '/issues', :controller => 'gantts', :only => [:show, :update] | 91 map.with_options :controller => 'gantts', :action => 'show' do |gantts_routes| |
84 map.resource :gantt, :path_prefix => '/projects/:project_id/issues', :controller => 'gantts', :only => [:show, :update] | 92 gantts_routes.connect '/projects/:project_id/issues/gantt' |
85 map.resource :calendar, :path_prefix => '/issues', :controller => 'calendars', :only => [:show, :update] | 93 gantts_routes.connect '/projects/:project_id/issues/gantt.:format' |
86 map.resource :calendar, :path_prefix => '/projects/:project_id/issues', :controller => 'calendars', :only => [:show, :update] | 94 gantts_routes.connect '/issues/gantt.:format' |
95 end | |
96 | |
97 map.with_options :controller => 'calendars', :action => 'show' do |calendars_routes| | |
98 calendars_routes.connect '/projects/:project_id/issues/calendar' | |
99 calendars_routes.connect '/issues/calendar' | |
100 end | |
87 | 101 |
88 map.with_options :controller => 'reports', :conditions => {:method => :get} do |reports| | 102 map.with_options :controller => 'reports', :conditions => {:method => :get} do |reports| |
89 reports.connect 'projects/:id/issues/report', :action => 'issue_report' | 103 reports.connect 'projects/:id/issues/report', :action => 'issue_report' |
90 reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details' | 104 reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details' |
91 end | 105 end |
213 map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/ | 227 map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/ |
214 | 228 |
215 map.resources :groups | 229 map.resources :groups |
216 | 230 |
217 #left old routes at the bottom for backwards compat | 231 #left old routes at the bottom for backwards compat |
232 map.connect 'projects/:project_id/queries/:action', :controller => 'queries' | |
218 map.connect 'projects/:project_id/issues/:action', :controller => 'issues' | 233 map.connect 'projects/:project_id/issues/:action', :controller => 'issues' |
219 map.connect 'projects/:project_id/documents/:action', :controller => 'documents' | 234 map.connect 'projects/:project_id/documents/:action', :controller => 'documents' |
220 map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' | 235 map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' |
221 map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages' | 236 map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages' |
222 map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki' | 237 map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki' |