Fixed some bugs on version page.

This commit is contained in:
Benjamin Meichsner 2009-08-12 19:00:45 +02:00
parent 9516f349ce
commit 469c2473ca
3 changed files with 4 additions and 4 deletions

View file

@ -9,8 +9,8 @@ module PagesHelper
# end
# end
def wikified_body(page)
WikiCloth.new({:data => page.body+"\n", :link_handler => Wikilink.new, :params => {:referer => page.title}}).to_html
def wikified_body(body, title = nil)
WikiCloth.new({:data => body+"\n", :link_handler => Wikilink.new, :params => {:referer => title}}).to_html
end
def link_to_wikipage(page)

View file

@ -1,4 +1,4 @@
- content = wikified_body @page
- content = wikified_body @page.body, @page.title
//#toc
//%h2 Inhaltsverzeichnis
//= generate_toc @page.body

View file

@ -1,6 +1,6 @@
- title @page.title
#page-versions{:style => "float:right"}
#sidebar
%b= "Version vom #{format_datetime @version.updated_at}"
%ul
%li= "Autor: #{User.find(@version.updated_by).nick}"