Fixed wiki module.

This commit is contained in:
benni 2011-05-18 15:25:05 +02:00
parent d5552059ce
commit 772cf87c92
12 changed files with 25 additions and 43 deletions

View file

@ -14,6 +14,7 @@ module Foodsoft
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
config.autoload_paths += %W(#{config.root}/lib)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.

View file

@ -206,6 +206,7 @@ de:
labels:
password: 'Passwort'
description: 'Beschreibung'
title: 'Titel'
workgroup:
weekly_task: 'Monatlichen Job definieren?'
weekday: 'Wochentag'
@ -227,6 +228,8 @@ de:
subject: 'Betreff'
body: 'Inhalt'
private: 'privat verschicken, Nachricht erscheint nicht im Foodsoft Posteingang'
page:
body: 'Inhalt'
hints:
task:
duration: 'Wie lange dauert die Aufgabe, 1-3 Stunden'

View file

@ -30,7 +30,7 @@ Foodsoft::Application.routes.draw do
get :version, :on => :member
get :revert, :on => :member
end
match '/wiki/:permalink' => 'pages#show', :constraints => {:permalink => /[^\s]+/}, :as => 'wiki_page'
match '/wiki/:permalink' => 'pages#show', :as => 'wiki_page' # , :constraints => {:permalink => /[^\s]+/}
match '/wiki' => 'pages#show', :defaults => {:permalink => 'Home'}, :as => 'wiki'
############ Orders, ordering