Tasks should be default page in foodcoop module.

This commit is contained in:
Benjamin Meichsner 2009-10-16 21:10:52 +02:00
parent cf9fa69ac2
commit b5b27cee6e
2 changed files with 4 additions and 4 deletions

View file

@ -8,14 +8,14 @@
{ :name => "Mein Profil", :url => "/home/profile"}
]
},
{ :name => "Foodcoop", :url => "/tasks",
{ :name => "Foodcoop", :url => "/foodcoop",
:active => ["foodcoop", "tasks", "messages", "foodcoop/ordergroups", "foodcoop/workgroups", "foodcoop/users"],
:subnav => [
{ :name => "Aufgaben", :url => "/tasks"},
{ :name => "Mitglieder", :url => "/foodcoop/users"},
{ :name => "Abeitsgruppen", :url => "/foodcoop/workgroups"},
{ :name => "Bestellgruppen", :url => "/foodcoop/ordergroups"},
{ :name => "Nachrichten", :url => "/messages"},
{ :name => "Aufgaben", :url => "/tasks"}
{ :name => "Nachrichten", :url => "/messages"}
]
},
{ :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.namespace :foodcoop do |foodcoop|
foodcoop.root :controller => "users", :action => "index"
foodcoop.root :controller => "tasks", :action => "index"
foodcoop.resources :users, :only => [:index]
foodcoop.resources :ordergroups, :only => [:index]
foodcoop.resources :workgroups, :only => [:index, :edit, :update],