Mercurial > hg > soundsoftware-site
comparison config/.svn/text-base/routes.rb.svn-base @ 511:107d36338b70 live
Merge from branch "cannam"
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:43:07 +0100 |
parents | cbce1fd3b1b7 |
children |
comparison
equal
deleted
inserted
replaced
451:a9f6345cb43d | 511:107d36338b70 |
---|---|
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 |
120 end | 134 end |
121 | 135 |
122 map.resources :users, :member => { | 136 map.resources :users, :member => { |
123 :edit_membership => :post, | 137 :edit_membership => :post, |
124 :destroy_membership => :post | 138 :destroy_membership => :post |
125 }, | 139 } |
126 :except => [:destroy] | |
127 | 140 |
128 # For nice "roadmap" in the url for the index action | 141 # For nice "roadmap" in the url for the index action |
129 map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' | 142 map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' |
130 | 143 |
131 map.all_news 'news', :controller => 'news', :action => 'index' | 144 map.all_news 'news', :controller => 'news', :action => 'index' |
214 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 => /.*/ |
215 | 228 |
216 map.resources :groups | 229 map.resources :groups |
217 | 230 |
218 #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' | |
219 map.connect 'projects/:project_id/issues/:action', :controller => 'issues' | 233 map.connect 'projects/:project_id/issues/:action', :controller => 'issues' |
220 map.connect 'projects/:project_id/documents/:action', :controller => 'documents' | 234 map.connect 'projects/:project_id/documents/:action', :controller => 'documents' |
221 map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' | 235 map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' |
222 map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages' | 236 map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages' |
223 map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki' | 237 map.connect 'wiki/:id/:page/:action', :page => nil, :controller => 'wiki' |