Cherrypick of sandoz last commit

Conflicts:
	app/views/pages/all.html.haml
	public/stylesheets/main.css
	public/stylesheets/print.css
This commit is contained in:
Benjamin Meichsner 2009-08-16 10:13:50 +02:00
commit 42b5e7a73f
10 changed files with 145 additions and 63 deletions

View file

@ -13,8 +13,12 @@ module PagesHelper
WikiCloth.new({:data => body+"\n", :link_handler => Wikilink.new, :params => {:referer => title}}).to_html
end
def link_to_wikipage(page)
link_to page.title, "/wiki/#{page.title}"
def link_to_wikipage(page, text = nil)
if text == nil
link_to page.title, "/wiki/#{page.title}"
else
link_to text, "/wiki/#{page.title}"
end
end
# def generate_toc(body)
# toc = ""