mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-28 10:04:07 +01:00
first cleanups of review feature
This commit is contained in:
parent
7f10c7b963
commit
3a07010338
8 changed files with 46 additions and 66 deletions
|
|
@ -12,15 +12,15 @@ ActionController::Routing::Routes.draw do |map|
|
|||
contexts.resources :todos, :name_prefix => "context_"
|
||||
end
|
||||
|
||||
map.resources :projects, :collection => {:order => :post, :alphabetize => :post, :actionize => :post, :done => :get},
|
||||
:member => {:done_todos => :get, :all_done_todos => :get, :set_reviewed => :get} do |projects|
|
||||
projects.resources :todos, :name_prefix => "project_"
|
||||
map.resources :projects,
|
||||
:collection => {:order => :post, :alphabetize => :post, :actionize => :post, :done => :get},
|
||||
:member => {:done_todos => :get, :all_done_todos => :get, :set_reviewed => :post} do |projects|
|
||||
projects.resources :todos, :name_prefix => "project_"
|
||||
end
|
||||
|
||||
map.with_options :controller => :projects do |projects|
|
||||
# projects.home '', :action => "index"
|
||||
projects.review 'review', :action => :review
|
||||
end
|
||||
map.with_options :controller => :projects do |projects|
|
||||
projects.review 'review', :action => :review
|
||||
end
|
||||
|
||||
map.resources :notes
|
||||
|
||||
|
|
@ -29,7 +29,6 @@ ActionController::Routing::Routes.draw do |map|
|
|||
:collection => {:check_deferred => :post, :filter_to_context => :post, :filter_to_project => :post, :done => :get, :all_done => :get
|
||||
}
|
||||
|
||||
|
||||
map.with_options :controller => :todos do |todos|
|
||||
todos.home '', :action => "index"
|
||||
todos.tickler 'tickler.:format', :action => "list_deferred"
|
||||
|
|
@ -104,7 +103,6 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.search 'search', :controller => 'search', :action => 'index'
|
||||
map.data 'data', :controller => 'data', :action => 'index'
|
||||
|
||||
map.connect '/selenium_helper/login', :controller => 'selenium_helper', :action => 'login' if Rails.env == 'test'
|
||||
Translate::Routes.translation_ui(map) if Rails.env != "production"
|
||||
|
||||
# Install the default route as the lowest priority.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue