Revert "Tasks should be default page in foodcoop module."

This reverts commit b5b27cee6e.
This commit is contained in:
Benjamin Meichsner 2009-10-17 11:53:17 +02:00
parent b5b27cee6e
commit 20c7c0ef02
2 changed files with 4 additions and 4 deletions

View file

@ -8,14 +8,14 @@
{ :name => "Mein Profil", :url => "/home/profile"} { :name => "Mein Profil", :url => "/home/profile"}
] ]
}, },
{ :name => "Foodcoop", :url => "/foodcoop", { :name => "Foodcoop", :url => "/tasks",
:active => ["foodcoop", "tasks", "messages", "foodcoop/ordergroups", "foodcoop/workgroups", "foodcoop/users"], :active => ["foodcoop", "tasks", "messages", "foodcoop/ordergroups", "foodcoop/workgroups", "foodcoop/users"],
:subnav => [ :subnav => [
{ :name => "Aufgaben", :url => "/tasks"},
{ :name => "Mitglieder", :url => "/foodcoop/users"}, { :name => "Mitglieder", :url => "/foodcoop/users"},
{ :name => "Abeitsgruppen", :url => "/foodcoop/workgroups"}, { :name => "Abeitsgruppen", :url => "/foodcoop/workgroups"},
{ :name => "Bestellgruppen", :url => "/foodcoop/ordergroups"}, { :name => "Bestellgruppen", :url => "/foodcoop/ordergroups"},
{ :name => "Nachrichten", :url => "/messages"} { :name => "Nachrichten", :url => "/messages"},
{ :name => "Aufgaben", :url => "/tasks"}
] ]
}, },
{ :name => "Wiki", :url => "/wiki", :active => ["pages", "wiki"], { :name => "Wiki", :url => "/wiki", :active => ["pages", "wiki"],

View file

@ -16,7 +16,7 @@ ActionController::Routing::Routes.draw do |map|
map.resources :invites, :only => [:new, :create] map.resources :invites, :only => [:new, :create]
map.namespace :foodcoop do |foodcoop| map.namespace :foodcoop do |foodcoop|
foodcoop.root :controller => "tasks", :action => "index" foodcoop.root :controller => "users", :action => "index"
foodcoop.resources :users, :only => [:index] foodcoop.resources :users, :only => [:index]
foodcoop.resources :ordergroups, :only => [:index] foodcoop.resources :ordergroups, :only => [:index]
foodcoop.resources :workgroups, :only => [:index, :edit, :update], foodcoop.resources :workgroups, :only => [:index, :edit, :update],