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
# end # end
def wikified_body(page) def wikified_body(body, title = nil)
WikiCloth.new({:data => page.body+"\n", :link_handler => Wikilink.new, :params => {:referer => page.title}}).to_html WikiCloth.new({:data => body+"\n", :link_handler => Wikilink.new, :params => {:referer => title}}).to_html
end end
def link_to_wikipage(page) def link_to_wikipage(page)

View File

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

View File

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